Commit b0372b3525bff2aed96051f6d7126bf1ff570983

Authored by Chantsova Ekaterina
1 parent 075138cc

Fix hiding keys in legend

... ... @@ -1277,7 +1277,7 @@ export class WidgetSubscription implements IWidgetSubscription {
1277 1277 const index = startIndex + dataIndex * dataKeysCount + dataKeyIndex;
1278 1278 let update = true;
1279 1279 let currentData: DataSetHolder;
1280   - if (this.displayLegend && this.legendData.keys[index].dataKey.hidden) {
  1280 + if (this.displayLegend && this.legendData.keys.find(key => key.dataIndex === index).dataKey.hidden) {
1281 1281 currentData = this.hiddenData[index];
1282 1282 } else {
1283 1283 currentData = this.data[index];
... ...