Merge pull request #3475 from ChantsovaEkaterina/bug/hide-key-in-legend
Fix hiding keys in legend
This commit is contained in:
commit
32b7ed5d8e
@ -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];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user