java - Jfreechart dynamic charts -


please point me in correct direction. need help. requirement show below dynamic data ( need refresh charts every 10 secs).

  1. # of items in queue
  2. 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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -