On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.

This report design shows how to switch a pie chart to a bar chart when a series value is negative

pricher
edited 2014 30 in DevShare Downloads #1
When using a pie chart, if the value of a series is negative, BIRT will still display the slice in the part as if it were a positive value. To overcome this problem, one solution is to switch automatically to a bar chart when one of the values is negative.<br />
<br />
The attached example uses the visibility attribute of a pie and a bar chart based on finding a negative value. The aggregations are done in a table. The two charts are put in the table footer and reuse the data in the container.