Hi
I try to create a chart with several line graphics.
How can I change the style of the lines? I mean f.e. the thickness of the line (thickness in points), the style of the line (solid, dottet, dashed, ...) or the color...
By the way: Actually, I use the Beta version 0.9.5, because I use dual Y-axis. In this version, I can't set the color with setSeriesPaint, it doesn't work. A bug?
Thanks
Hans
Line style
Re: Line style
Hi Hans,
At the moment, the setSeriesStroke(...) method inherited from the Plot class should help you. But like setSeriesPaint(...), this is undergoing some change right now, the reason being that plots can now have more than one dataset (to support the dual axis function) and also the combined and overlaid plots complicate matters. In the CVS code, you can use the setFillPaintTable(...) method inherited from AbstractRenderer to control the series colors...but this too is changing because it isn't right yet.
I have some experimental code in my local source tree which is working reasonably well now for the series colors (but needs more testing), I will probably get this committed to CVS in the next day or so...then I'll use a similar framework to control the series line strokes and shapes.
Regards,
Dave Gilbert
At the moment, the setSeriesStroke(...) method inherited from the Plot class should help you. But like setSeriesPaint(...), this is undergoing some change right now, the reason being that plots can now have more than one dataset (to support the dual axis function) and also the combined and overlaid plots complicate matters. In the CVS code, you can use the setFillPaintTable(...) method inherited from AbstractRenderer to control the series colors...but this too is changing because it isn't right yet.
I have some experimental code in my local source tree which is working reasonably well now for the series colors (but needs more testing), I will probably get this committed to CVS in the next day or so...then I'll use a similar framework to control the series line strokes and shapes.
Regards,
Dave Gilbert