You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I'm pretty new to js and electron, this might be a stupid question, but I really can't find the way to solve it and here is the issue:
In the guidance, there are two ways to insert canvas gauge, the HTML way works fine for me. However, I'm struggling on the js way. when I paste the code into the js file, I got an error saying "LinearGauge is undefined".
Just wondering, in what way should I include or import canvas-gauge.
I tried, var canvas = require("canvas-gauge") but don't know how to link the canvas with the LinearGauge method.
I also tried, put the code into the HTML file inside <script> tag, that doesn't work as well.
Thanks for any help!
The text was updated successfully, but these errors were encountered:
Also, with HTML, how to updating the value like gauge.value("10") as in js.
I used JQuery to change the 'data-value' attribute, but there is no animation at all.
As I'm pretty new to js and electron, this might be a stupid question, but I really can't find the way to solve it and here is the issue:
In the guidance, there are two ways to insert canvas gauge, the HTML way works fine for me. However, I'm struggling on the js way. when I paste the code into the js file, I got an error saying "LinearGauge is undefined".
Just wondering, in what way should I include or import canvas-gauge.
I tried, var canvas = require("canvas-gauge") but don't know how to link the canvas with the LinearGauge method.
I also tried, put the code into the HTML file inside <script> tag, that doesn't work as well.
Thanks for any help!
The text was updated successfully, but these errors were encountered: