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

View File

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