toorshia/justgage

minTxt and maxTxt not working

MrCraftfreak opened this issue · 1 comments

The code below is the one i made but it doesn't show the minTxt and maxTxt

<!doctype html>

<title>Defaults</title> <style> .container { width: 600px; margin: 100px auto; text-align: center; }

.gauge {
width: 350px;
height: 250px;
display: inline-block;
}

</style>
<script src="https://fm2.loggix.com/raphael-2.1.4.min.js"></script> <script src="https://fm2.loggix.com/justgage.js"></script> <script> document.addEventListener("DOMContentLoaded", function(event) {
var dflt = {
  min: 0,
  max: 200,
  minTxt: 'no',
  maxTxt: 'yes',      
  donut: false,
  gaugeWidthScale: 0.8,
  counter: true,
  hideInnerShadow: true
}

var gg1 = new JustGage({
  id: 'gg1',
  value: 50,
  title: 'test',
  defaults: dflt
});

});
</script>

minTxt and maxTxt overrides min and max values