Values into the Charts

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

Values into the Charts

Post by Frenk » Tue Aug 13, 2002 5:01 pm

Hello all,
Is it possible to get the values into the middle of the charts. At example: If I use VerticalBarChart the bars are drawn, but I must read the values from
the y-axis. It would be nice if I could read the values in the bars and not
at the y-axis.
Is there a possibility to do this. If yes, I would be very happy for your answer.

ciao
Frenk

David Gilbert

Re: Values into the Charts

Post by David Gilbert » Tue Aug 13, 2002 5:55 pm

A developer (Jeremy Bowman I think it was) added a method to the CategoryPlot class:

public void setLabelsVisible(boolean);

This allows some charts (not all of them yet) to display values for each item. Positioning is fixed, but this code will get more flexible over time...

Regards,

DG

Locked