About labels in Pie chart using NAME_AND_VALUE_LABELS

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

About labels in Pie chart using NAME_AND_VALUE_LABELS

Post by Mikio Kishi » Sun Sep 15, 2002 6:50 pm

Hi all,

I have one question about a label in pie chart.
When there are some sequential small value in pie chart
(with NAME_AND_VALUE_LABELS),
these value's label in pie chart override each other...

Are there any solutions ?

Sincerely,

Mikio Kishi.

David Gilbert

Re: About labels in Pie chart using NAME_AND_VALUE_LABELS

Post by David Gilbert » Mon Sep 16, 2002 6:25 am

At the moment, the pie chart labelling is very simplistic. Some enhancements will be required to prevent overlapping.

One idea is to specify a new attribute in the PiePlot class that controls the minimum percentage for a pie section (say 5%). All sections smaller than this would be consolidated into a single section labelled 'Other' (or something).

Of course, that doesn't solve the problem, it just hides it, so some other approaches will also be required.

Regards,

DG.

Andreas Schroeder

Re: About labels in Pie chart using NAME_AND_VALUE_LABELS

Post by Andreas Schroeder » Mon Sep 16, 2002 8:02 am

Do not forget that the map labelling problem is NP-complete!
Maybe this problem is constricted enough that it lies in P,
but keep this in mind
(see e.g.
http://www.mpi-sb.mpg.de/~guwek/BMBF/st ... ode13.html
found it with google)

Regards

Andreas Schroeder

Locked