From af39c7e9fd8cc87473010589eafa8901ba797144 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 5 Jan 2026 13:47:16 -0600 Subject: [PATCH] Add raw attribute logging to debug boolean values --- assets/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assets/js/app.js b/assets/js/app.js index 4ee430fc..c05cf7bc 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -51,6 +51,13 @@ const SensorChart = { const canvas = this.el.querySelector('canvas') const ctx = canvas.getContext('2d') const unit = this.el.dataset.unit || '%' + + console.log('Raw attributes:', { + autoScale: this.el.dataset.autoScale, + showZeroLine: this.el.dataset.showZeroLine, + unit: this.el.dataset.unit + }) + const autoScale = this.el.dataset.autoScale === 'true' || this.el.dataset.autoScale === true const showZeroLine = this.el.dataset.showZeroLine === 'true' || this.el.dataset.showZeroLine === true const chartType = unit === 'bps' ? 'bar' : 'line'