Question

I created a stacked bar chart using JFreeChart (similar to this one). Now I would like to connect the points of the corresponding series for all rows. Is this possible using JFreeChart?

Was it helpful?

Solution

Although I'm not completely sure I understand what you want, I guess you might want to look into the LineAndShapeRenderer and/or the XYLineAndShapeRenderer classes in the JFreeChart library.

Check these (slightly dated) samples (and the related ones at the end of linked page) for what they can do and if that is what you want to achieve

JFreeChart: XYLineAndShapeRenderer Demo

FreeChart: Line Chart Demo

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top