Showing
1 changed file
with
1 additions
and
1 deletions
@@ -1277,7 +1277,7 @@ export class WidgetSubscription implements IWidgetSubscription { | @@ -1277,7 +1277,7 @@ export class WidgetSubscription implements IWidgetSubscription { | ||
1277 | const index = startIndex + dataIndex * dataKeysCount + dataKeyIndex; | 1277 | const index = startIndex + dataIndex * dataKeysCount + dataKeyIndex; |
1278 | let update = true; | 1278 | let update = true; |
1279 | let currentData: DataSetHolder; | 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 | currentData = this.hiddenData[index]; | 1281 | currentData = this.hiddenData[index]; |
1282 | } else { | 1282 | } else { |
1283 | currentData = this.data[index]; | 1283 | currentData = this.data[index]; |