Browse Source

add thousands sep, and add a few missing commas at the end of lines..

main
John-Mark Gurney 4 years ago
parent
commit
342a7f514e
1 changed files with 11 additions and 8 deletions
  1. +11
    -8
      root/js/solardash.base.js

+ 11
- 8
root/js/solardash.base.js View File

@@ -1,7 +1,10 @@
Highcharts.setOptions({ Highcharts.setOptions({
time: { time: {
timezone: 'America/Los_Angeles'
}
timezone: 'America/Los_Angeles',
},
lang: {
thousandsSep: ',',
},
}); });


socket.onopen = function() { socket.onopen = function() {
@@ -106,18 +109,18 @@ var solarchart = Highcharts.stockChart('solarchart', {
}, },
type: "datetime", type: "datetime",
title: { title: {
enabled: false
enabled: false,
}, },
ordinal: false, ordinal: false,
}, },
yAxis: { yAxis: {
title: { title: {
text: 'W'
text: 'W',
} }
}, },
tooltip: { tooltip: {
split: true, split: true,
valueSuffix: ' W'
valueSuffix: ' W',
}, },
plotOptions: { plotOptions: {
area: { area: {
@@ -134,17 +137,17 @@ var solarchart = Highcharts.stockChart('solarchart', {
series: [ series: [
{ {
name: 'consumption', name: 'consumption',
type: 'area',
type: 'line',
data: [ ], data: [ ],
}, },
{ {
name: 'grid', name: 'grid',
type: 'area',
type: 'line',
data: [ ], data: [ ],
}, },
{ {
name: 'production', name: 'production',
type: 'area',
type: 'line',
data: [ ], data: [ ],
}, },
] ]


Loading…
Cancel
Save