Okay
  Public Ticket #2770530
decimal places in pie charts
Closed

Comments

  • Matt started the conversation

    Hi, is it possible to display more than one decimal place in a pie chart? We're trying to display numbers with 2 decimal places but it rounds to 1.

    Thanks!

  • [deleted] replied

    Hi Matt

    Thank you for reaching out to us.

    Chart engines do not inherit the number format you set up in wpDataTables, and there are no built-in options to change the number format in the chart, but you can use wpdatachart callbacks. Every chart exposes several options that customize its look and feel. Charts usually support custom options appropriate to that visualization.

    You can take a look at this page in our FAQ section and see how this can be done.

    I hope this helps, do let us know if there is anything else we can assist you with.


  • Matt replied

    HI Blaženka,

    Is there any more specific instruction you could give? I'm trying to get Highcharts pie charts to allow 2 decimal places. I know what callbacks are but I have no idea where to even begin looking for information on how to achieve this.

    Thanks!

  • [deleted] replied

    Hi Matt

    The example I shared shows exactly how to change the number of decimal places in a column chart. I don't know how exactly the number of decimal places is changed for the pie chart, so I too would need to explore the API library, and that falls under customization which unfortunately is not included in the provided support.

    If there is anything else we can assist you with do let us know.