fixed passing arguments to flot, see comment

This commit is contained in:
Kristjan Komlosi
2019-11-01 21:32:55 +01:00
parent 8bd17e6582
commit de47450381
+2 -1
View File
@@ -21,7 +21,8 @@ function graphSpectralData (obj, dom) {
graphPoints.push([index, obj[element]]);
});
console.log(graphPoints);
$.plot("#graph", graphPoints);
$.plot('#graph', [graphPoints]);
// flot expects an array of arrays (lines) of 2-element arrays (points)
}
function fillLuxUv (obj, dom) {