Advanced Usage: 5 - Speedometer / Gauge Chart


5.1 Gauge Chart

This page contains tests for gauge chart type defined as data-type="gauge". Gauge chart type consists of a semi circle with needle pointing at the target value over styled and calibrated areas. Figure 5a can be consulted for various elements and vocabulary used in this documentation.

Figure 5a

5.1.1 Configurations of Gauge Chart


5.2 Simple Gauge Chart with Gradient Areas

5.3 Gauge Chart with Transparent Area and Styled Needle

5.4 Gauge Chart styled Title, Smaller Gauge Areas Radius and Custom Calibrations

5.5 Speedometer Example with Animated Target Update
JavaScript (Note that how exposed object "speedoMeterObj" is used to interact with the chart)
setInterval(function(){if(typeof speedoMeterObj != "undefined"){var random = Math.round(Math.random()*100) + 1;speedoMeterObj.setTarget(random);speedoMeterObj.setTitle(random + ' MPH')}}, 3000);