Query output to flot chart in html