Hi,
I am creating a dataset with X and Y values and creating a LineChart. Is there any way to change the thickness of the line in the line chart? The line that i get presently is very thick. Is there some method that I can use in the XYPlot or some other class?
Basically i want to cutomize the LineChart ....what would be the best way to do it?
thanks,
dmou1
Changing the thickness of the line in Linechart
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You can use plot.getRenderer().setSeriesStroke(...).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 16
- Joined: Wed Aug 31, 2005 4:25 pm
-
- Posts: 12
- Joined: Thu Aug 04, 2005 2:56 pm
- Location: Oldenburg - Germany
try this:
for me that works ...
Code: Select all
this.xyplot.getRenderer(1).setSeriesStroke(0,
new BasicStroke(2.0f));