Idea for PiePlot labels conflict

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

Idea for PiePlot labels conflict

Post by Morpheus » Fri Feb 28, 2003 9:18 pm

I have an idea, but I don't know if it is stupid or implementable :o)

Knowing the angle of each section, From the intersection of the mediane ( I don't know if it is the same word like in french, but roughly speaking, the line that starts from center of circle and divides the section angle in two halfs ) and the arc of section, we draw a perpendicular line to the tangent of the circle that include that point of intersection. The length of that line could be measured since we know the coordinates of the square that wraps the circle, and the length of the label. Well, then we display horizontally the label at the end of that line. We could maybe also add a new line parallel to the horizontal axis and tha starts from the end of the first line, this assure us that all labels are parallel to each other...

I hope I have been understood. If no, Tell me were to send a pie example image.

Regards
Morpheus

David Gilbert

Re: Idea for PiePlot labels conflict

Post by David Gilbert » Tue Mar 04, 2003 10:23 am

Hi Morpheus,

I've seen pie charts that do this, and it is a good approach. The problem for me is finding the time to write the code...but, of course, if I wait long enough, someone else will do it!

Regards,

Dave Gilbert

Sudha

Re: Idea for PiePlot labels conflict

Post by Sudha » Wed Mar 05, 2003 4:47 pm

Hello,

Can u send me the pie example.......

Thanks in advance

Locked