From 57c8348b6c9ff53c4582fb790cef0244ddc2fd63 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 3 Mar 2020 16:31:51 -0800 Subject: [PATCH] add some experiemental code wrt stacking... --- fakedata.py | 2 ++ root/js/solardash.base.js | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/fakedata.py b/fakedata.py index c4596e4..d034ddb 100644 --- a/fakedata.py +++ b/fakedata.py @@ -161,4 +161,6 @@ for i in { 'prodpoints', 'prodindex', 'conspoints', 'consindex',}: v = [ (x, int(y)) for x, y in v ] locals()[i] = v +#conspoints = [ (x, -y) for x, y in conspoints ] + print('fakedata =', json.dumps(dict(production=prodpoints, prodindex=prodindex, consumption=conspoints, consindex=consindex), default=serializearrowasmili, indent=1)) diff --git a/root/js/solardash.base.js b/root/js/solardash.base.js index e52282c..033b2fb 100644 --- a/root/js/solardash.base.js +++ b/root/js/solardash.base.js @@ -129,6 +129,9 @@ var solarchart = Highcharts.stockChart('solarchart', { valueSuffix: ' W', }, plotOptions: { + line: { + //stacking: 'normal', + }, area: { //stacking: 'normal', lineColor: '#666666', @@ -145,6 +148,7 @@ var solarchart = Highcharts.stockChart('solarchart', { name: 'consumption', id: 'consumption', type: 'line', + //stacking: 'normal', data: [ ], }, { @@ -157,6 +161,7 @@ var solarchart = Highcharts.stockChart('solarchart', { name: 'production', id: 'production', type: 'line', + //stacking: 'normal', data: [ ], }, ]