Commit 32b7ed5d8ebadf7332bf9140d9ea4388bfa1ae3a

Authored by Igor Kulikov
Committed by GitHub
2 parents c0ce47df b0372b35

Merge pull request #3475 from ChantsovaEkaterina/bug/hide-key-in-legend

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];
... ...