Jump to content
We've recently updated our Privacy Statement, available here ×
  • how to add percentage to HTML5 pie chart labels


    rmiller
    • Features: Charts Version: v5.0

    Issue:

    The HTML5 chart API provides a way to modify pie chart labels using plotOptions.pie.dataLabels.formatter (the formatter property is available for other chart types as well, such as xAxis.label.formatter). The formatter takes a function as the value, and it is for this reason that it has been disabled due to possible XSS security vunerabilities.

    http://api.highcharts.com/highcharts#plotOptions.pie.dataLabels.formatter

    __________________________________________________________________________________________________

    Resolution:

    Use the database to calculate the percentage and return it in a field. This field can now be used in the category bucket expression, e.g., $F{country} + ":" + $F{percent} + " %"


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...