Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to Control HTML5 Pie Chart size


    asimkin
    • Features: Reports Product: JasperReports® Server

    Issue Description

    Inside my report I have 3 Pie charts on the same line with the same width/height.  The problem is about the height of the pie chart because it changes according the number of category it's showing: fewer are the categories and bigger will be the chart.  I would like to get all the three Pie Charts with the same height and aligned vertically.

    charts_with_explenation.png.7454e3d8be520794f8aa9c676dab17bf.png


    Resolution

    The default behavior is to scale pie chart to the plot area and give room for data labels within the plot area.  As a consequence, the size of the pie may vary when points are updated and data labels more around.  To avoid the behavior you should specify plotOptions.pie.size property for each pie chart:

    https://api.highcharts.com/highcharts/plotOptions.pie.size

    It can be a percent value, for example 80%


    Ref. Case 01558092

    charts_with_explenation.png.b30d3e7ab05193a10f6657cddb93761c.png


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...