Hi Zydenhx,
Based on your requirement. We would like to let you know that there are no direct support to customize tooltip alone. Hence we suggest you to use tooltipRender event to customize the tooltip text based on our requirement. Please find the sample, code snippet and screenshot below.
Code Snippet:
|
<ChartComponent tooltipRender={this.tooltipRender.bind(this)} loaded={this.onChartLoad.bind(this)} >
// add your additional code here
tooltipRender(args) {
var y = args.text.split(':')[1];
args.text = args.data.pointX + ' : ' + y;
}
// add your additional code here |
Screenshot:
Let us know if you have any concerns.
Regards,
Srihari M