Changed endpoints and db queries, chart now shows suggested mins and maxes

This commit is contained in:
Daniel Ledda
2020-11-07 01:36:14 +01:00
parent fa347815cc
commit b88e10aafe

View File

@@ -74,8 +74,8 @@
id: 'y-axis-1', id: 'y-axis-1',
ticks: { ticks: {
fontColor: co2Color, fontColor: co2Color,
min: 400, suggestedMin: 400,
max: 1100, suggestedMax: 1100,
}, },
}, { }, {
type: 'linear', type: 'linear',
@@ -84,8 +84,8 @@
id: 'y-axis-2', id: 'y-axis-2',
ticks: { ticks: {
fontColor: tempColor, fontColor: tempColor,
min: 10, suggestedMin: 10,
max: 35, suggestedMax: 35,
}, },
gridLines: { gridLines: {
drawOnChartArea: false, drawOnChartArea: false,
@@ -97,8 +97,8 @@
id: 'y-axis-3', id: 'y-axis-3',
ticks: { ticks: {
fontColor: humidityColor, fontColor: humidityColor,
min: 15, suggestedMin: 15,
max: 85, suggestedMax: 85,
}, },
gridLines: { gridLines: {
drawOnChartArea: false, drawOnChartArea: false,