FusionCharts - Angular Gauge (Speedometer or Dial Chart) in JavaScript Example
Created using FusionCharts Suite XT - www.fusioncharts.com
HTML
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.widgets.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!-- Showcase of Customer Satisfaction Score for current week using Angular Gauge. -->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function () {
var cSatScoreChart = new FusionCharts({
type: 'cylinder',
renderAt: 'chart-container',
width: '400',
height: '250',
dataFormat: 'json',
dataSource: {
"chart" : {"caption":"","numberPrefix":"","numberSuffix":"","decimalSeparator":"","thousandSeparator":"","subCaption":"","ChartType":"Charts/Cylinder.swf","drillParameter":"CONTRACT_CODE","theme":"fint","lowerLimit": "0",
"upperLimit": "200",},
"colorrange": {"color":[{"minValue":"","maxValue":"","code":"","borderColor":""}]},
"dials" : {"dial" :[{"value":"154"}]},
"pointers" : {"pointer" :{"value":"154"}}
}
});
cSatScoreChart.render();
});