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


Loading…
Cancel
Save