Browse Source

add some experiemental code wrt stacking...

main
John-Mark Gurney 5 years ago
parent
commit
57c8348b6c
2 changed files with 7 additions and 0 deletions
  1. +2
    -0
      fakedata.py
  2. +5
    -0
      root/js/solardash.base.js

+ 2
- 0
fakedata.py View File

@@ -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))

+ 5
- 0
root/js/solardash.base.js View File

@@ -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: [ ],
},
]


Loading…
Cancel
Save