how can i create dynamic line chart using jFree chart in java which is show data of 2 hours before and also provide a blank space where data show for 2 hours later from current time.For example suppose current time is 4pm ,so the chart display data from 2pm to 6pm.Here 2pm to 4pm the chart show a line and 4pm to 6pm provide a blank space which is fill time to time when the graph is moving that mean the tail of this graph is starting from middle and move right. similar like stock market chart.
Share
Yes, you can do it. I was facing a similar problem a few days ago.
DynamicLineAndTimeSeriesChart.java
Please also check here :
http://blog.odoobiz.com/2012/07/how-to-draw-dynamic-line-or-timeseries.html