switch from jqPlot to Flot
BugFix: check if data exists