diff --git a/frontend/frontend.js b/frontend/frontend.js index 45b6271..3c84846 100644 --- a/frontend/frontend.js +++ b/frontend/frontend.js @@ -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) {