I have a graph that shows the temperatures of a sensor located outside my house. It sends the temperature at regular intervals, so I have a TimeSeries and a TimeSeriesCollection.
Every second it does this:
Code: Select all
chartdataset.add(actual, temperatura);
Every time I add a new temperature I also do this:
Code: Select all
tmpMovingAverage.add(actual, temperatura);
Code: Select all
temperatura=Math.random()*100;
What am I doing wrong?
Cheers!
hjf.