Commit 15532c0b authored by Nina Willems's avatar Nina Willems

[client/timeserie] stat display only for highlighted parameter

parent 7ef9d637
......@@ -65,7 +65,14 @@ const renderLegendItemInner = (param: Parameter, i: number) =>
),
renderNameLegendItem(param)
),
stats(param),
getHighligthParameter().map(ps => {
if (ps.id === param.id) {
return stats(param);
}
else {
return DIV({});
}
}),
...getPlotNorms(param.id).map(renderNormItem)
);
......@@ -77,7 +84,7 @@ const renderLegendItem = (param: Parameter, i: number) => {
return DIV(
{
className: 'legend-item highlighted',
key: `rp-${param.id}`,
key: `rp - ${param.id} `,
onClick: () => clearHighligthParameter(),
},
renderLegendItemInner(param, i)
......@@ -86,7 +93,7 @@ const renderLegendItem = (param: Parameter, i: number) => {
return DIV(
{
className: 'legend-item',
key: `rp-${param.id}`,
key: `rp - ${param.id} `,
onClick: () => {
clearHighligthParameter();
getSelectedKind().map((k) =>
......@@ -119,7 +126,7 @@ const stationClassName = (index: number) =>
export const renderStation = (s: StationSelection, index: number) =>
DIV(
{
key: `table-feature-${index}`,
key: `table - feature - ${index} `,
className: stationClassName(index),
onClick: () => setSelectedStationIndex(index)
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment