SUPPORT-9117: add dp tooltip

This commit is contained in:
Artyom Hackimullin 2025-05-06 15:30:22 +03:00
parent 0be53c59bf
commit d6ae9af0d2

View file

@ -241,6 +241,13 @@ export class ErvuChartV2 extends Control implements Filterable {
} }
this.cd.markForCheck(); this.cd.markForCheck();
} }
},
filter: tooltipItem => {
const type = tooltipItem.chart.config.type;
if (type == 'doughnut' || type == 'pie') {
return tooltipItem.label.trim().length !== 0;
}
return tooltipItem.dataset.label.trim().length !== 0
} }
}; };