how to increase thickness of a jfree chart line series?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ajithcherukad
Posts: 1
Joined: Tue Sep 08, 2009 12:23 am
antibot: No, of course not.

how to increase thickness of a jfree chart line series?

Post by ajithcherukad » Tue Sep 08, 2009 12:27 am

Hi there,

Could someone please let me know how to increase thickness of a line series in JFreeChart?

Thanks,
Ajith

kha
Posts: 4
Joined: Tue Sep 08, 2009 7:56 am
antibot: No, of course not.

Re: how to increase thickness of a jfree chart line series?

Post by kha » Tue Sep 08, 2009 8:06 am

Hi Ajith,

Apply following steps:
1. Get the renderer you are using for painting the series
2. Then simply apply renderer.setSeriesStroke ( <series number, if you have only one it is 0>, new BasicStroke ( <thickness as float, i.e 2.0f etc> ));

k

Locked