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

Fix hiding keys in legend
This commit is contained in:
Igor Kulikov 2020-09-16 12:07:18 +03:00 committed by GitHub
commit 32b7ed5d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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