Problem with a Pie Chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ChemaCabrero
Posts: 3
Joined: Mon Jul 31, 2017 11:30 am
antibot: No, of course not.

Problem with a Pie Chart

Post by ChemaCabrero » Mon Jul 31, 2017 11:41 am

Hi!
I used JFreeChart to draw a Pie Chart with the same size (width and height)

In the version JFreeChart 1.0.15 my image is this

https://ibb.co/gjbEVQ

In the version JFreeChat 1.0.16 my image is this

https://ibb.co/hFQV4k

Why the size of Pie es distinct?

Thanks

C.C.

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Problem with a Pie Chart

Post by John Matthews » Mon Jul 31, 2017 9:08 pm

Have you tried JFreeChart 1.0.19?

ChemaCabrero
Posts: 3
Joined: Mon Jul 31, 2017 11:30 am
antibot: No, of course not.

Re: Problem with a Pie Chart

Post by ChemaCabrero » Tue Aug 01, 2017 7:09 am

Thank you for answer John Matthews!!

Yes, the first version in which it happened is in 1.0.16. I have tried with versions 1.0.16, 1.0.17, 1.0.18 and the last 1.0.19.

Thanks!

Any more ideas?

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Problem with a Pie Chart

Post by John Matthews » Wed Aug 02, 2017 11:12 am

You can see the release dates for the pivotal versions here and compare the relevant revisions in the PiePlot history here to see what changed. At a guess, the goal was to balance the tradeoff between space for labels and sections.
Last edited by John Matthews on Thu Aug 03, 2017 11:14 am, edited 1 time in total.

ChemaCabrero
Posts: 3
Joined: Mon Jul 31, 2017 11:30 am
antibot: No, of course not.

Re: Problem with a Pie Chart

Post by ChemaCabrero » Thu Aug 03, 2017 10:52 am

Thanks John Matthews for your information!

Indeed, the PiePlot class was modified in the method drawPie to calculate the horizontal gap. I have made the necessary changes and now it works as before.

Thanks for all

Best regards

Locked