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