SVG Gauge v1.0.5 Release Notes

Release Date: 2019-01-08 // about 5 years ago
  • ➕ Added support for viewBox
    🛠 Fixed documentation typos
    ⬆️ Upgraded build to gulp 4


Previous changes from v1.0.4

  • 🛠 Fixed minor bugs

    • Value dial colour now shows for initial value
    • Positive min and max values now work correctly (e.g. min: 50, max: 150)

      var gauge = Gauge( document.getElementById("gauge2"), { min: 50, // +ve min value max: 150, dialStartAngle: 180, dialEndAngle: 0, value: 50, // The color is correctly shown nowcolor: function(value) { if(value < 20) { return "#5ee432"; }else if(value < 40) { return "#fffa50"; }else if(value < 60) { return "#f7aa38"; }else { return "#ef4655"; } } } );