Home › forums › Using CanvasJS › Need help of how to format numbers (bits) pc-units please
Tagged: format xAxis yAxis
This topic contains 2 replies, has 2 voices, and was last updated by firstname.lastname@example.org 2 weeks, 6 days ago.
Need help of how to format numbers (bits) pc-units please
my values that i want to convert/format are like 20311514949b, 1544949464b
i want my final result in yAxis and tooltip something like this 20Mbps 30Mbps
You can achieve this by formatting the label displayed over axisY and content in toolTip according to your requirements with the help of labelFormatter and contentFormatter respectively, please refer documentation for more customization options. Please take a look at this JSFiddle.
Thank you very much for the reply, works well :)
You must be logged in to reply to this topic.