I have a Database which stores every 15 minutes the temperature. Now i want to create a Java JFreeChart time series Chart, which displays the last 24 hours.
I imported the last 24 hours data with a mysql request into my java program. What is the easiest way to show all my data in the chart? Because when i try to add a new value , i get an error that its not allowed to have 2 times the same hour.
Here are some values from my database (for example)
2014-01-18 13:45:04 21.4 11.6
2014-01-18 13:30:03 20.8 10.3
How can i add them into a chart?
is there a method to add data with same days and same hours? because i only know the
timeseries.add(new Day(...))
timeseries.add(new Hour(..))
methods.
Thanks