initial commit

This commit is contained in:
Tobias Hopp 2023-05-21 18:52:39 +02:00
parent 19772073ae
commit 3d0d648ed2
4 changed files with 13 additions and 6 deletions

6
.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -1,4 +1,4 @@
FROM node:18 FROM --platform=linux/arm64 node:18
# Create app directory # Create app directory
WORKDIR /app/ WORKDIR /app/

View File

@ -55,7 +55,7 @@ const annotations = {
{ {
type: 'box', type: 'box',
yMin: 250.5, yMin: 250.5,
yMax: 500.4, yMax: 800.4,
backgroundColor: colorRanges.hazardous, backgroundColor: colorRanges.hazardous,
}, },
] ]
@ -74,15 +74,15 @@ var chart = new Chart(ctx, {
datasets: [{ datasets: [{
label: 'PM2.5', label: 'PM2.5',
data: [], data: [],
backgroundColor: 'rgba(255, 99, 132, 0.2)', backgroundColor: 'rgba(150,160,6,0.2)',
borderColor: 'rgba(255,99,132,1)', borderColor: 'rgb(166,202,5)',
borderWidth: 2, borderWidth: 2,
fill: false fill: false
}, { }, {
label: 'PM10', label: 'PM10',
data: [], data: [],
backgroundColor: 'rgba(54, 162, 235, 0.2)', backgroundColor: 'rgba(0,156,144,0.2)',
borderColor: 'rgba(54, 162, 235, 1)', borderColor: 'rgb(8,135,223)',
borderWidth: 2, borderWidth: 2,
fill: false fill: false
}] }]

View File

@ -16,6 +16,7 @@ canvas {
h1 { h1 {
margin-bottom: -1%; margin-bottom: -1%;
text-align: center;
} }
#chart { #chart {