From 04028b41e7b00eed1557652b44fecba9b01dac3a Mon Sep 17 00:00:00 2001 From: Simon Maddocks Date: Sun, 3 Oct 2021 16:18:05 +0100 Subject: [PATCH] Remove maintain aspect ratio --- .../ManagementPage/wwwroot/js/temperature_chart.js | 1 - docker-compose.yml | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ManagementPage/ManagementPage/wwwroot/js/temperature_chart.js b/ManagementPage/ManagementPage/wwwroot/js/temperature_chart.js index b48b140..162bdd0 100644 --- a/ManagementPage/ManagementPage/wwwroot/js/temperature_chart.js +++ b/ManagementPage/ManagementPage/wwwroot/js/temperature_chart.js @@ -24,7 +24,6 @@ function CreateChart(ctx, temp, humidity) { const config = { type: 'line', data: data, - options: { maintainAspectRatio: true } options: { maintainAspectRatio: true, scales: { diff --git a/docker-compose.yml b/docker-compose.yml index f76b348..29f25e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,8 @@ services: database: image: mongo:latest + volumes: + - "db-data:/data/db" apiserver: image: registry.jacknet.io/51m0n/environment-api:latest @@ -29,4 +31,5 @@ services: depends_on: - apiserver - frontend - \ No newline at end of file +volumes: + db-data: \ No newline at end of file