Piechart with Negative Values

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
halomanish
Posts: 2
Joined: Mon Feb 06, 2017 6:03 am
antibot: No, of course not.

Piechart with Negative Values

Post by halomanish » Tue Feb 07, 2017 6:32 am

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.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Piechart with Negative Values

Post by david.gilbert » Wed Feb 08, 2017 1:14 pm

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.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked