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.
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
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)
精彩评论