XYItemRenderer+XYLineAndShapeRenderer: Can I get labels too?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
purduephotog
Posts: 17
Joined: Wed Nov 10, 2004 11:29 pm

XYItemRenderer+XYLineAndShapeRenderer: Can I get labels too?

Post by purduephotog » Fri May 06, 2005 4:57 pm

Hello-

I'm trying to produce a graph that has text labels (values) next to the points as well as the shapes displayed. The old code I had written used XYLineAndShapeRenderer, but that never supported StandardXYLabelGenerator . The new code uses XYItemRenderer, but that doesn't support setSeriesLinesVisible.

So... how does one enable labels on an XYchart and the little 'ticks' that tell me where the points are on said chart?

I'm not opposed to having an arrow drawn from the label to the curve, either, since that would be nearly as acceptable.

I can try posting sample code if people would like to see the difference that I'm talking about, but it's rather poor atm from all the debug testing...

Jason

Locked