A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
lia
- Posts: 18
- Joined: Sat Oct 14, 2006 5:02 am
- Location: Victoria BC
Post
by lia » Sat Oct 14, 2006 5:25 am
I have created a servlet to write my charts out to the outputstream. I have copied the model in the demo, where I save my chart as a session attribute and write it out using ChartUtilities.writeChartAsPNG. When I have a simple chart with just one series in the TimeSeriesCollection my image updates when I change from 1 chart to another. However when I create complex charts with multiple series in the TimeSeriesCollection then the chart does not update. Does anyone have any idea what the problem is?
-
lia
- Posts: 18
- Joined: Sat Oct 14, 2006 5:02 am
- Location: Victoria BC
Post
by lia » Sat Oct 14, 2006 5:51 am
I think the problem may be that I am saving the chart as a session attribute rather than a request attribute. I set the chart attribute to null but I don't think that that is enough. Maybe it's a out buffer problem?? Any ideas?
-
angel
- Posts: 899
- Joined: Thu Jan 15, 2004 12:07 am
- Location: Germany - Palatinate
Post
by angel » Mon Oct 16, 2006 7:30 am
Another reason could be the browser cache...