From 342a7f514e938874effc9a665711d9bcd1dba9c2 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 3 Mar 2020 15:38:13 -0800 Subject: [PATCH] add thousands sep, and add a few missing commas at the end of lines.. --- root/js/solardash.base.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/root/js/solardash.base.js b/root/js/solardash.base.js index 801711d..3e1b40e 100644 --- a/root/js/solardash.base.js +++ b/root/js/solardash.base.js @@ -1,7 +1,10 @@ Highcharts.setOptions({ time: { - timezone: 'America/Los_Angeles' - } + timezone: 'America/Los_Angeles', + }, + lang: { + thousandsSep: ',', + }, }); socket.onopen = function() { @@ -106,18 +109,18 @@ var solarchart = Highcharts.stockChart('solarchart', { }, type: "datetime", title: { - enabled: false + enabled: false, }, ordinal: false, }, yAxis: { title: { - text: 'W' + text: 'W', } }, tooltip: { split: true, - valueSuffix: ' W' + valueSuffix: ' W', }, plotOptions: { area: { @@ -134,17 +137,17 @@ var solarchart = Highcharts.stockChart('solarchart', { series: [ { name: 'consumption', - type: 'area', + type: 'line', data: [ ], }, { name: 'grid', - type: 'area', + type: 'line', data: [ ], }, { name: 'production', - type: 'area', + type: 'line', data: [ ], }, ]