for (int j = 0; j < years.size(); j++) {
data[i][j] = thesesDao.countThesesAtYearAndCategory(years.get(j), categories.get(i).getId());
}
}
File f = File.createTempFile("chart", ".png");
new ColumnChart("Graf prac� podle data obhajoby a kategorie pr�ce",
COLUMN_CHART_WIDTH, COLUMN_CHART_HEIGHT + data.length * 20,
"Roky", "Po�et prac�", data, labels, legendLabels
).saveChart(f);
return f;
}