| @@ -161,4 +161,6 @@ for i in { 'prodpoints', 'prodindex', 'conspoints', 'consindex',}: | |||||
| v = [ (x, int(y)) for x, y in v ] | v = [ (x, int(y)) for x, y in v ] | ||||
| locals()[i] = 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)) | print('fakedata =', json.dumps(dict(production=prodpoints, prodindex=prodindex, consumption=conspoints, consindex=consindex), default=serializearrowasmili, indent=1)) | ||||
| @@ -129,6 +129,9 @@ var solarchart = Highcharts.stockChart('solarchart', { | |||||
| valueSuffix: ' W', | valueSuffix: ' W', | ||||
| }, | }, | ||||
| plotOptions: { | plotOptions: { | ||||
| line: { | |||||
| //stacking: 'normal', | |||||
| }, | |||||
| area: { | area: { | ||||
| //stacking: 'normal', | //stacking: 'normal', | ||||
| lineColor: '#666666', | lineColor: '#666666', | ||||
| @@ -145,6 +148,7 @@ var solarchart = Highcharts.stockChart('solarchart', { | |||||
| name: 'consumption', | name: 'consumption', | ||||
| id: 'consumption', | id: 'consumption', | ||||
| type: 'line', | type: 'line', | ||||
| //stacking: 'normal', | |||||
| data: [ ], | data: [ ], | ||||
| }, | }, | ||||
| { | { | ||||
| @@ -157,6 +161,7 @@ var solarchart = Highcharts.stockChart('solarchart', { | |||||
| name: 'production', | name: 'production', | ||||
| id: 'production', | id: 'production', | ||||
| type: 'line', | type: 'line', | ||||
| //stacking: 'normal', | |||||
| data: [ ], | data: [ ], | ||||
| }, | }, | ||||
| ] | ] | ||||