Home forums Using CanvasJS How to remove data labels from Graph?

This topic contains 4 replies, has 3 voices, and was last updated by  arjunsonik 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11283

    arjunsonik
    Member

    Can anyone please tell how to remove data labels from graphs??

    #11284

    Sanjoy
    Moderator

    For removing labels from axis you can set valueFormatString as a white-space character. In case you are looking for something else a pictorial representation will help us to understand better.

    #11286

    arjunsonik
    Member

    I am using Doughnut chart, and i am not able to remove the data legends.
    I used the same you specified but it did not work.

    #11287

    Vishwas R
    Keymaster

    Arjun,

    Here is an example for pie/doughnut charts without indexLabels. If your requirement is not to show legends, you can set showInLegend to false (defaults to false),if you have set it to true.

    If this doesn’t fulfill your requirement, pictorial representation would help us to understand and help you out.

    #11288

    arjunsonik
    Member

    Thank You
    I removed the second parameter giving the legend text, which was my requirement.

    Thanks @sanjoy and @vishwasr

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

You must be logged in to reply to this topic.