SUPPORT-9217: fix
This commit is contained in:
parent
2585539291
commit
96da7c01c5
1 changed files with 2 additions and 2 deletions
|
|
@ -262,7 +262,7 @@ export class ErvuChartV2 extends Control implements Filterable {
|
|||
}
|
||||
};
|
||||
|
||||
chartConfig.dataTooltip = this.dataTooltip
|
||||
const dataTooltipFunction: Function = this.dataTooltip
|
||||
? this.dataTooltip.tooltip
|
||||
: ((dataLabel, value) => dataLabel + ' : ' + value) ;
|
||||
chartOptions.plugins.tooltip.callbacks = {
|
||||
|
|
@ -282,7 +282,7 @@ export class ErvuChartV2 extends Control implements Filterable {
|
|||
dataLabel = dataLabel ? dataLabel : tooltipItem.label;
|
||||
value = dataset.data[tooltipItem.dataIndex].toLocaleString();
|
||||
}
|
||||
return tooltipItem.chart.config.dataTooltip(dataLabel, value);
|
||||
return dataTooltipFunction(dataLabel, value);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue