Quick start
You can use responsive-gauge via several ways :Vanilla JS
Download the library file, place it in a folder of your site and add it to your page.<script src="folder_containing_the_library/ResponsiveGauge.min.js"></script>
RequireJS
Configure requireJS to retrieve responsive-gauge from the CDN :
requirejs.config({
"paths" : {
"gauges" : https://cdn.rawgit.com/DeepSilence/ResponsiveGauge/69b33feebb300834edaa535df95fae1e68de59e9/dist/ResponsiveGauge.min.css
}
});
Then add its injection to any module that need it :
"paths" : {
"gauges" : https://cdn.rawgit.com/DeepSilence/ResponsiveGauge/69b33feebb300834edaa535df95fae1e68de59e9/dist/ResponsiveGauge.min.css
}
});
define([ 'gauges' ], function(gauges) {
// use the responsive-gauge library
...
}
// use the responsive-gauge library
...
}
Node.js / CommonJS
npm is a package manager for node projects; install responsive-gauge locally :~ $ npm install responsive-gauge
Then add the dependency to it anywhere you need :
var gauges = require('responsive-gauge');