bernii / gauge.js

100% native and cool looking JavaScript gauge
MIT License
1.42k stars 391 forks source link

Please help a noob, I have heard that I need to include lib so I don't get Guage is not defined error! #239

Open dan953 opened 3 years ago

dan953 commented 3 years ago

Hello, I am receiving the error, "Guage is not defined" when I run the code below. I was reading past issues and saw that I need to include lib or something. Any help will be appreciated

HTML `<!DOCTYPE html>

`
qroft commented 2 years ago

Hi Dan, the first thing i would try is to see if the plugin is really loaded. For this simply load the page where you use the plugin and press CTRL + U to get the source code. When you have the code, find the line where you have implemented the script. By what you have posted, it seems like you are trying to implement it directly from github. Apart of the fact that this is not such a great idea, if you click on said link in your code, what happens? If you can see the gauge.min.js code then the plugin is implemented, otherwise not.

The best thing would be to download the whole MASTER from this Github folder and put that gauge.min.js file somewhere within your project and call it from there.