Ok so there was confusion on what i was asking. I need help adjusting开发者_JAVA百科 the algorithm I already have here. First part I need the X axis to be time and Y axis to be data read from file the user specifies the directory. This data file will be written every second so the graph should pause or graph 0 if there is no data and time is still running. The purpose of this program is that a script in linux will write to a file cpu, memory and power consumption and I have to graph that.
You can add multiple TimeSeries
to a TimeSeriesCollection
, as shown here.
精彩评论