Skip to content

Releases: naikus/svg-gauge

Release 1.0.5

08 Jan 06:46
Compare
Choose a tag to compare

Added support for viewBox
Fixed documentation typos
Upgraded build to gulp 4

Release 1.0.4

30 Nov 06:24
335e00e
Compare
Choose a tag to compare

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 now
    color: function(value) {
      if(value < 20) {
        return "#5ee432";
      }else if(value < 40) {
        return "#fffa50";
      }else if(value < 60) {
        return "#f7aa38";
      }else {
        return "#ef4655";
      }
    }
  }
);

Release 1.0.3

30 Nov 06:05
Compare
Choose a tag to compare
Release 1.0.3 Pre-release
Pre-release

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)

Release 1.0.2

02 Nov 09:38
Compare
Choose a tag to compare

Added options to specify CSS classes for gauge dial, gauge dial fill and text

Release 1.0.1

28 Oct 09:53
Compare
Choose a tag to compare

Bug fix release and some optimizations

Release 1.0.0

25 Oct 06:10
Compare
Choose a tag to compare

Added custom label support

      var gauge1 = Gauge(
        document.getElementById("gauge1"), 
            {
          max: 100,
          dialStartAngle: -90,
          dialEndAngle: -90.001, 
          value: 100,
          label: function(value) {
            return Math.round(value) + "/" + this.max;
          }
        }
      );