Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1065
Customize chart axis values
posted

Hi All,

How can we assign % values to Y -axis or  X- axis instead of numeric or string values to IgDataChart/IgPieChart ?

 

Thanks in Advance,

Pavan

 

Parents
No Data
Reply
  • 30692
    Suggested Answer
    Offline posted

    Hi,

    If you provide a function for the formatLabel option on an axis, you can customize the formating of the labels. You should provide a function that takes the value to format, and return a string representing the formatted label. For example if you wanted to append a percent sign it might look like this:

    ...

    formatLabel: function (value) { return value + "%" }

    ...

Children
No Data