SUPPORT-9117: add dp tooltip
This commit is contained in:
parent
0be53c59bf
commit
d6ae9af0d2
1 changed files with 7 additions and 0 deletions
|
|
@ -241,6 +241,13 @@ export class ErvuChartV2 extends Control implements Filterable {
|
|||
}
|
||||
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
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue