PieChart Wedges don't begin at 12:00 o'clock

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Ray Mercer

PieChart Wedges don't begin at 12:00 o'clock

Post by Ray Mercer » Wed Jun 19, 2002 12:17 pm

I am using JFreeChart in a project here and it's going very well. I have a strong request from management to make the pie charts' draw slices starting at 12:00 o'clock (0 degrees) and proceed clockwise from there.

Is there currently any way to control this, or do I have to dive into the source myself?

Also, any plans for 3D pie charts? (just curious)

-Best Regards,
Ray Mercer
Yokohama, Japan

David Gilbert

Re: PieChart Wedges don't begin at 12:00 o'clock

Post by David Gilbert » Wed Jun 19, 2002 12:30 pm

Hi Ray,

There's no way to control it at present...if I recall correctly, the sections start at three o'clock and proceed anti-clockwise. It would be good to add an attribute to control the starting point and another to control the direction, neither should be difficult.

A developer sent me a 3D pie plot implementation just today...I've committed it to CVS if you want to try it out. A couple of things I noticed with it...the labels need to be positioned differently, and the pie could do with being slanted back to get a better 3D effect (plus a different color shade around the outside might help). But it is a good starting point.

Regards,

DG.

David Gilbert

Re: PieChart Wedges don't begin at 12:00 o'clock

Post by David Gilbert » Wed Jun 19, 2002 3:55 pm

David Gilbert wrote:
> It would be good to add an attribute to
> control the starting point and another to control the
> direction, neither should be difficult.

This change has now been committed to CVS and will be included in 0.9.2 when it is released.

Regards,

DG.

Ray Mercer

Re: PieChart Wedges don't begin at 12:00 o'clock

Post by Ray Mercer » Thu Jun 20, 2002 1:40 am

David Gilbert wrote:
>> It would be good to add an attribute to
>> control the starting point and another to control the
>> direction, neither should be difficult.

>This change has now been committed to CVS and will be included in 0.9.2 when it is released.

That is excellent! Thanks so much!!

-Ray

Locked