Hi Inzitari,
Greetings from Syncfusion.
We have analyzed your query with attached image and code snippet. Since there are two series and you have enabled shared tooltip, the tooltipRender event triggered will be twice and the given format will be applied to all the series. So, this seems to be duplicated in your end. We have prepared a sample in which we have different format for two series.
Refer the below code snippet to achieve this.
|
function tooltip(args) {
var intl = new ej.base.Internationalization();
var formattedString = intl.formatDate(new Date(args.point.x), { format: 'MMM.dd y HH:mm' });
var formattedNumber = intl.formatNumber(args.point.y, { format: 'c0' })
if (args.series.index === 0) {
args.text = formattedString + '<br\> ' + 'Price ' + formattedNumber;
} else if (args.series.index === 1) {
args.text = formattedString + '<br\> ' + 'Volume ' + formattedNumber;
}
} |
Screenshot:
Sample for reference can be find from below link.
Also, as of now for adding tooltip header dynamically, we have considered your requirement as improvement and this improvement will be available in volume 3 SP1 release which is expected at end of October 2018.
Regards,
Dharani.