Home forums Using CanvasJS Pie chart label and tooltip in number values and not percentages

This topic contains 1 reply, has 2 voices, and was last updated by  Shashi Ranjan 4 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25687

    Hello Support.

    View post on imgur.com

    We have a pie chart that shows the percentage values in both the labels and tooltip for each geographical area.

    How can we change them to whole numbers, instead of percentage values…??

    Thanks in advance.

    #25705

    @driven13,

    The y-value shown in indexLabel and toolTip depends on yValueFormatString and other properties like toolTipContent, contentFormatter may over-ride the value shown in toolTip. Setting indexLabel, toolTipContent / content properties properly should work fine in your case.

    If this doesn’t solve the issue you are facing. kindly share JSFiddle with sample data so that we can look into the options that you are using, understand the scenario better and help you out.


    Shashi Ranjan
    Team CanvasJS

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

You must be logged in to reply to this topic.