Hi Robert,
Thanks for contacting Syncfusion Support.
We have analyzed your query and created a sample based on your requirement. In the sample, we have achieved your requirement by using “toolTipInitialize” event.
Please refer the code example below
[JS] $("#container").ejChart( { toolTipInitialize: "toolTip" }); function toolTip(sender) { var seriesIndex = sender.data.seriesIndex, pointIndex = sender.data.pointIndex, currentPoint = sender.model.series[seriesIndex].points[pointIndex], x = currentPoint.x, y = currentPoint.y, yVal = (y < 1) ? y.toFixed(4) : y.toFixed(2); sender.data.currentText = "x : " + x + "</br>" + "y : " + yVal; } |
In the above code, if point value is less than 1, we have shown 4 decimal places only on tooltip and if point values is greater than 1, then 2 decimal places will be displayed on tooltip.
And you can find the sample from the below location.
And find the output of the sample below
Please let us know if you have any concern.
Regards,
Saravana Kumar K