Thicker plot lines on XY chart

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

Thicker plot lines on XY chart

Post by Jem McCombe » Mon Apr 22, 2002 12:47 pm

Hi,

I'm trying to force the lines on a time serie chart to be rendered thicker. I've seen the LineChartDemo where the chart.setSeriesStroke() method is used.

I'm trying

seriesStrokeArray[series] = new BasicStroke(800.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND,
800.0f, new float[] { 10.0f, 6.0f }, 10.0f);

hoping to geta really thick line - but it doesn't seem to make any difference.

Can anyone recommend some way of creaying thicker plot lines?

David Gilbert

Re: Thicker plot lines on XY chart

Post by David Gilbert » Mon Apr 22, 2002 12:59 pm

I used this in a test chart (only one series, so I've only defined one Stroke in the array, but you can add more) and it works for me:

// set the stroke for each series...
Stroke[] seriesStrokeArray = new Stroke[1];
seriesStrokeArray[0] = new BasicStroke(4.0f);
chart.getPlot().setSeriesStroke(seriesStrokeArray);

Regards,

DG.

Locked