This this Jfreechart is good stuff.
I've used the JFreechart 0.7.3 in one of my projects as it allows several different combined charts, it seems to work fine for when the data is static, however implementing a dynamic dataset (which changes at most every 10 to 60secs), I seem to be having problems getting the chart to update.
I've read some of the other posts and have tried the suggestions, but I still can't get it to work. I'm relatively new with event driven programming (and with Java), but I think its something to do with the listeners and registering them with the appropriate objects, but doesnt the JFreeChart take care of registering the listeners and notifying them all when the data changes?
I have also tried to directly "fire" the event after recieving the new data but this still has not produced the required effect.
Hope someone can help.
Hitesh
updating Dataset and chart
Re: updating Dataset and chart
Hi Hitesh,
It is *supposed* to work automatically, but there could still be some debugging to do. The best thing you can do is put together a small self-contained demo showing the problem and e-mail it to me...then I can step through the code and try to find the problem.
Regards,
DG.
It is *supposed* to work automatically, but there could still be some debugging to do. The best thing you can do is put together a small self-contained demo showing the problem and e-mail it to me...then I can step through the code and try to find the problem.
Regards,
DG.