From 3d0d648ed26246b9c36ddc94d0ec2d1180c73c23 Mon Sep 17 00:00:00 2001 From: Tobias Hopp Date: Sun, 21 May 2023 18:52:39 +0200 Subject: [PATCH] initial commit --- .idea/vcs.xml | 6 ++++++ Dockerfile | 2 +- public/javascripts/main.js | 10 +++++----- public/stylesheets/style.css | 1 + 4 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 83f32ea..dd239c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18 +FROM --platform=linux/arm64 node:18 # Create app directory WORKDIR /app/ diff --git a/public/javascripts/main.js b/public/javascripts/main.js index 5f6e3b9..8ec0739 100644 --- a/public/javascripts/main.js +++ b/public/javascripts/main.js @@ -55,7 +55,7 @@ const annotations = { { type: 'box', yMin: 250.5, - yMax: 500.4, + yMax: 800.4, backgroundColor: colorRanges.hazardous, }, ] @@ -74,15 +74,15 @@ var chart = new Chart(ctx, { datasets: [{ label: 'PM2.5', data: [], - backgroundColor: 'rgba(255, 99, 132, 0.2)', - borderColor: 'rgba(255,99,132,1)', + backgroundColor: 'rgba(150,160,6,0.2)', + borderColor: 'rgb(166,202,5)', borderWidth: 2, fill: false }, { label: 'PM10', data: [], - backgroundColor: 'rgba(54, 162, 235, 0.2)', - borderColor: 'rgba(54, 162, 235, 1)', + backgroundColor: 'rgba(0,156,144,0.2)', + borderColor: 'rgb(8,135,223)', borderWidth: 2, fill: false }] diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index c261039..3fde00f 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -16,6 +16,7 @@ canvas { h1 { margin-bottom: -1%; + text-align: center; } #chart {