Display labels next to the lines in overlaid line chart

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

Display labels next to the lines in overlaid line chart

Post by yc » Tue Apr 16, 2002 8:28 pm

I need someone to provide hint/help on how to display labels next to the lines in an overlaid line chart. The reason is I want to have 9 lines with the same color in an overlaid line chart and I need to distinguish the lines by identifying them w/ labels.

Thanks.
yc

David Gilbert

Re: Display labels next to the lines in overlaid line chart

Post by David Gilbert » Tue Apr 16, 2002 9:44 pm

There's no general facility for adding labels yet, just the legend which relies on color. You can also control the Stroke for each series using the setSeriesStroke(...) method in the Plot class, which might be another way to differentiate the lines. See the LineChartDemo class for an example.

Regards,

DG.

Locked