mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-16 18:47:40 -05:00
Formatting tweaks
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -1,13 +1,20 @@
|
|||||||
|
|
||||||
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';
|
||||||
|
|
||||||
if (environment.production) {
|
if (environment.production) {
|
||||||
enableProdMode();
|
enableProdMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule)
|
platformBrowserDynamic().bootstrapModule(AppModule)
|
||||||
.catch(err => console.error(err));
|
.catch(err => console.error(err));
|
||||||
|
|
||||||
|
Highcharts.setOptions({
|
||||||
|
lang: {
|
||||||
|
thousandsSep: ','
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user