As a part of my Phd work on software testing, I discovered a small issue in the piechart functionality of JFreeChart.
In the createPieChart method of the ChartFactory class: if a negative value is provided in the dataset to be used for the pie chart, it is simply ignored while creating the pie chart and JFreeChart plots the pie chart using the rest positive values of the data set. Contrary to this behavior, the application should generate an error message as it is impractical to plot a pie chart with negative values.
Piechart with Negative Values
-
- Posts: 2
- Joined: Mon Feb 06, 2017 6:03 am
- antibot: No, of course not.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Piechart with Negative Values
Thanks for the report. Tracking it with this issue:
https://github.com/jfree/jfreechart/issues/39
...so please refer there for any discussion and/or updates.
https://github.com/jfree/jfreechart/issues/39
...so please refer there for any discussion and/or updates.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program