java - Jfreechart dynamic charts -
please point me in correct direction. need help. requirement show below dynamic data ( need refresh charts every 10 secs).
- # of items in queue
- age of oldest item in queue.
i using jfreechart, confused kind of chart appropriate kind of requirement. few pointers.how showing both 1 , 2 in same chart? or else should show 1 , 2 in separate charts?
consider org.jfree.data.time.dynamictimeseriescollection
, "adds ability append new data , discard oldest." javax.swing.timer
convenient periodic updates, it's action event handler executes on event-dispatching thread.
addendum: it's time series, domain axis can formatted show age. xyitemlabelgenerator
alternative; here example using numberformat
. number of items in queue can displayed in corresponding series' legend.
Comments
Post a Comment