Vaadin Charts data from database

CONSTRUCTOR:
public WeatherInfo(java.sql.Date date2, int int1, int int2, int int3,
int int4, int int5, int int6, int int7, int int8, int int9,
int int10, int int11, int int12, int int13, int int14,
int int15, int int16, int int17, int int18, int int19,
int int20, int int21, int int22) {

I am overriding the toString() function to format the data like in the example provided from “charts-tutorial”.

@Override
public String toString() {
return “WeatherInfo("”+ date +"", " + maxTemp…

GETTING DATA FROM DATABASE:

System.out.println(weatherData);
weatherData = Arrays.asList (
new WeatherInfo(rs.getDate(1), rs.getInt(2),…
);
}
System.out.println(weatherData);
}

ECLIPSE CONSOLE:
INFORMATION: null
-4
null
-5
[WeatherInfo(“2013-01-06”, -4, -7, -9, -4, -8, -10, 100, 97, 93, 1027, 1023, 1021, 10, 9, 2, 16, 8, 29, 2, 7, 4, 74),

As you can see, I get the data from the database. However, no data gets plotted in the chart !
If I use the example data directly, it gets plotted correctly:

new WeatherInfo(“2013-1-6”, -4, -7, -9, -4, -8, -10, 100, 97, 93, 1027, 1023, 1021, 10, 9, 2, 16, 8, 29, 2, 7, 4, 74),

So why doesn’t the data get plotted? How can I archieve this?