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?
Thicker plot lines on XY chart
Re: Thicker plot lines on XY chart
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.
// set the stroke for each series...
Stroke[] seriesStrokeArray = new Stroke[1];
seriesStrokeArray[0] = new BasicStroke(4.0f);
chart.getPlot().setSeriesStroke(seriesStrokeArray);
Regards,
DG.