A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
gauge.js
-
@Charley Doesn’t work…
Uncaught TypeError: Cannot read property 'getContext' of null
-
Maybe you could try this
let mycanvas = document.createElement("canvas"); // changed from div to canvas mycanvas.id=("divcanvas") let target=document.getElementById("divcanvas")
I made a typo yesterday
-
@Charley yes it’s what I tried…
-
I tried with another lib called canvas-gauges. It’s the same. The canvas doesn’t appear on the screen
I’m wondering if a parent CSS config or something like could be the reason.
-
It’s good it works!! For the last lib I just forgot to call the draw method.