Albinoswordfish
Albinoswordfish

Reputation: 1957

Dynamic graphing using Jfreechart

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.

Upvotes: 4

Views: 2637

Answers (2)

andersoj
andersoj

Reputation: 22884

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)

Upvotes: 0

Fazal
Fazal

Reputation: 3051

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

Upvotes: 3

Related Questions