How to wrap labels in pie Chart Pro?

Table of Contents 

Issue

Occasionally the labels are too big for the Pie Chart and do not fit into the chart. Is there a way to control this behaviour?


Solution

You can use Fusion Charts properties for that. If you check Fusion docs you will find this property:

<chart ...="" managelabeloverflow="1" ...>

Essentially it will wrap the labels if there is enough space.

You can apply this in a Pie Chart in this manner:

<fc:chart type="Pie"
          xmlns:fc="http://jaspersoft.com/fusion"
          xsi:schemalocation="http://jaspersoft.com/fusion http://jaspersoft.com/schema/fusion.xsd">
    <fc:chartproperty name="manageLabelOverflow">
        <fc:propertyexpression>
            <!--[CDATA["1"]]-->
        </fc:propertyexpression>
    </fc:chartproperty>
    ...
</fc:chart>
Before After

You can find some other available properties in Fusion Charts documentation.

Feedback