line width definition (?)

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Juan Edo. Pérez R.

line width definition (?)

Post by Juan Edo. Pérez R. » Tue Aug 27, 2002 12:18 am

Hi

Compared with my previous program (easy chart), jfreechart
is simply better. I have changed all my aplications to jfreechart

Now, I have been searching any way to change the width of a line
(in an overlaidchart with lines and areas)

¿anybody knows how to do it?
maybe "setLineWidth(X)".... but where i can found it?
and how it can be done?

bye and thanks!

JP

David Gilbert

Re: line width definition (?)

Post by David Gilbert » Tue Aug 27, 2002 4:30 am

In the Plot class, you can use the setSeriesStroke(...) methods to control the line stroke for each series. The LineChartDemo1 application has one example using dotted lines, but you can also control the line thickness this way.

Regards,

DG.

Locked