Home forums Using CanvasJS Need help of how to format numbers (bits) pc-units please

This topic contains 2 replies, has 2 voices, and was last updated by  karam@smbit.co.il 2 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24517

    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

    #24524

    @karamsmbit-co-il,

    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.


    Vishwas R
    Team CanvasJS

    #24535

    Thank you very much for the reply, works well :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.