From a9e6e38af322305f003022cd32076a1e711ad737 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Sun, 30 May 2021 19:47:07 -0400 Subject: [PATCH] Formatting tweaks --- .../weather/charts/weather-charts.component.ts | 8 ++++---- Display/src/main.ts | 11 +++++++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Display/src/app/components/weather/charts/weather-charts.component.ts b/Display/src/app/components/weather/charts/weather-charts.component.ts index 9c18586..b4b7a69 100644 --- a/Display/src/app/components/weather/charts/weather-charts.component.ts +++ b/Display/src/app/components/weather/charts/weather-charts.component.ts @@ -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' diff --git a/Display/src/main.ts b/Display/src/main.ts index e76caee..b276c9a 100644 --- a/Display/src/main.ts +++ b/Display/src/main.ts @@ -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: ',' + } +});