views:

285

answers:

3

Right now I'm using JFreeChart in order to create a dynamic chart. However the chart is significantly slowing down my GUI. I was just wondering, is jfreechart generally heavy in the graphics department (my computer is not fast at all). Or is there a way to configure the ChartPanel to better optimize dynamic charting.

+3  A: 

JFreechart library by itself does not cause the UI to be much slower. But definitely being on slow PC created problem in UI rendering as browser has to do much more pixel drawing with charts. Still you can look at the following link and see if the tricks described can help you

http://www.jfree.org/phpBB2/viewtopic.php?t=12682

Fazal
Well I turned off anti aliasing and the drawing of the chart became faster however the GUI still remains slow
Albinoswordfish
A: 

Here's a simple example I use to gauge the effect of adding multiple series on a given platform. It's subjective, but it may offer some guidance.

trashgod
A: 

Are you adding data to the JFreeChart dataset at a high rate? Have you considered shutting off notifications when you add a batch of data, then re-enabling?

 JFreeChart.setNotify(false)
andersoj