Commit 32b7ed5d8ebadf7332bf9140d9ea4388bfa1ae3a
Committed by
GitHub
Merge pull request #3475 from ChantsovaEkaterina/bug/hide-key-in-legend
Fix hiding keys in legend
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -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]; | ... | ... |