From d42316d706e8a08de2748b7a239b8bb3a4bdfeb2 Mon Sep 17 00:00:00 2001 From: Kristjan Komlosi Date: Fri, 1 Nov 2019 21:36:34 +0100 Subject: [PATCH] set grid color --- frontend/frontend.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/frontend.js b/frontend/frontend.js index 3c84846..6e88362 100644 --- a/frontend/frontend.js +++ b/frontend/frontend.js @@ -14,6 +14,7 @@ function updateData () { }) } + function graphSpectralData (obj, dom) { // graph spectral data in obj into dom var graphPoints = []; @@ -21,6 +22,11 @@ function graphSpectralData (obj, dom) { graphPoints.push([index, obj[element]]); }); console.log(graphPoints); + const options = { + grid: { + color: 'white' + } + } $.plot('#graph', [graphPoints]); // flot expects an array of arrays (lines) of 2-element arrays (points) }