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
130
igPieChart format label
posted

Hi,

I have a little problem wit chart label:

formatLabel: function (item) { return item.itemLabel+" "+item.percentValue+"%" },

labelsPosition: "bestFit"

When label is outside of chart instead of Label 7% it show Label 7.000000000000%.

How can I fix this? (My value is a float converted to json)

Parents
No Data
Reply
  • 2680
    Verified Answer
    Offline posted

    Giovanni,

    Thank you for contacting us.

    I created a sample demonstrating how to handle float values - you should use Math.ceiling/Math.round/Math.floor to convert them to integers - link.

    If this does not help, please send us a working sample or a code snippets including your data source and igPieChart configuration so we could further investigate.

Children