Also, in one of the example they say you can use javascript and the 'var gg2' has an addition attribute 'value'. Not sure if that helps (see code below)
var gg2 = new JustGage({
id: 'gg2',
value: 999; <-----
title: 'data-attributes',
defaults: dflt
});
The Html code does not have the 'data-value' property
here is the original code from on of the examples. Two gages, one uses "data-attributes" the other uses a "javascript call" either way I'm clueless!
<body>
<div class="container">
<div id="gg1" class="gauge"></div>
<div id="gg2" class="gauge" data-value="25"></div>
</div>
<script src="../raphael-2.1.4.min.js"></script>
<script src="../justgage.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
var dflt = {
min: 0,
max: 200,
donut: true,
gaugeWidthScale: 0.6,
counter: true,
hideInnerShadow: true
}
var gg1 = new JustGage({
id: 'gg1',
value: 125,
title: 'javascript call',
defaults: dflt
});
var gg2 = new JustGage({
id: 'gg2',
title: 'data-attributes',
defaults: dflt
});
});
</script>
</body>