set labels on aline chart

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

set labels on aline chart

Post by schmidt » Wed Feb 05, 2003 12:19 pm

hi,
how to set y axis labels at the datapoints of a line chart?

Arnaud

Re: set labels on aline chart

Post by Arnaud » Wed Feb 05, 2003 7:28 pm

Hello,

I'm new to JFreeChart, and as I know :
- You can use the tooltips facility to display data on each plot, when - and only when - the mouse cursor enters the area of the datapoint. If You customize the tooltipGenerator, You can of course only display the y axis label

- in case You want to draw permanently the text on the chart, I guess You have to use the XYTextAnnotation class.... but as I've never used it Yet....

Hope it helps,

Redards,
Arnaud

Locked