Formatting tweaks

This commit is contained in:
2021-05-30 19:47:07 -04:00
parent ad50839fae
commit a9e6e38af3
2 changed files with 13 additions and 6 deletions

View File

@@ -143,10 +143,10 @@ export class WeatherChartsComponent implements OnInit {
{
visible: true,
labels: {
format: '{value:.2f}%'
format: '{value}%'
},
title: {
text: 'Percentage'
text: 'Humidity'
},
min: 0,
max: 100,
@@ -166,7 +166,7 @@ export class WeatherChartsComponent implements OnInit {
},
{
labels: {
format: '{value:.2f} lx',
format: '{value} lx',
},
title: {
text: 'Light'
@@ -254,7 +254,7 @@ export class WeatherChartsComponent implements OnInit {
yAxis: [
{
labels: {
format: '{value:.2f} MPH',
format: '{value} MPH',
},
title: {
text: 'Wind Speed'

View File

@@ -1,13 +1,20 @@
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import * as Highcharts from 'highcharts';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
.catch(err => console.error(err));
Highcharts.setOptions({
lang: {
thousandsSep: ','
}
});