Line Charts

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

Line Charts

Post by Suprigya » Tue Oct 08, 2002 8:45 pm

I am new to JFreeCharts.Could someone please tell me if this is possible with JCharts?

1. I'd like to place the value of a bar above each bar of a barchart. Is it possible and how? Same case, with line charts

2.Is it possible to have broken links on line chart if some data-value is missing

3. Is it possible to draw a straight line parallel to x-axis on a line? The line represting the threshold or goal. There will be line chart showing the current behavious and a straight line showing goal/threshold...

4. Does it support localization/internationalization for the labels, titles, numbers, etc.

Dave Gilbert

Re: Line Charts

Post by Dave Gilbert » Wed Oct 09, 2002 9:12 am

Suprigya wrote:
> 1. I'd like to place the value of a bar above each bar of a
> barchart. Is it possible and how? Same case, with line charts

Yes, use the setLabelsVisible(...) method in the CategoryPlot class.

> 2.Is it possible to have broken links on line chart if some
> data-value is missing

Yes, if you specify the value as null, no linking lines will be drawn.

> 3. Is it possible to draw a straight line parallel to x-axis
> on a line? The line represting the threshold or goal. There
> will be line chart showing the current behavious and a
> straight line showing goal/threshold...

Yes, use the addRangeMarker(...) method in the CategoryPlot class (also available in the XYPlot class).

> 4. Does it support localization/internationalization for the
> labels, titles, numbers, etc.

The default 'standard' tick units might not localise that well (I'm open to suggestions for improving this) but you can override the standard collection using the setStandardTickUnits method in the ValueAxis class.

Regards,

DG

Locked