Home › forums › Using CanvasJS › Formatting of hover
Hi, I would like to limit the precision shown when I hover.
e.g. right now when i hover on a point on a trace on a line chart I might see e.g. 3.21453453455, 66.777436537 in the tooltip.
I would prefer to see something like 3.21, 66.77.
Is there a way to do this?
You can format x and y-values shown in the toolTip with the help of xValueFormatString and yValueFormatString respectively. Please refer to our documentation page for more customization options available.
You must be logged in to reply to this topic.