FusionCharts - Angular Gauge
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>
<!-- A simple angular gauge showing customer satisfaction index for Harry's Supermart.
Elements :
1. Color Range (Radial scale)
2. Dials (Data Value Indicators)
3. Tick Marks & Values
4. Tooltip
5. Trend points, trend arcs & trend markers
6. Annotations
-->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function () {
var cSatScoreChart = new FusionCharts({
type: 'angulargauge',
renderAt: 'chart-container',
width: '450',
height: '400',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Customer Satisfaction Score",
"subcaption": "Los Angeles Topanga",
"plotToolText": "Current Score: $value",
"theme": "fint",
// "origw": "320",
// "origh": "320",
"showValue":"1",
"chartBottomMargin": "50",
"showGaugeBorder":"0",
"showTickMarks":"0",
"showTickValues":"0",
"gaugestartangle": "240",
"gaugeendangle": "-60",
"gaugeOuterRadius":"110",
"gaugeInnerRadius":"70"
},
"colorRange": {
"color": [{
"minValue": "0",
"maxValue": "45",
"code": "#45B5E7"
}, {
"minValue": "45",
"maxValue": "100",
"code": "#E9E9E9"
}]
},
"dials": {
"dial": [{
"value": "8.9",
"alpha":"0",
"borderalpha":"0"
}]
},
"annotations": {
"origw": "450",
"origh": "300",
"autoscale": "1",
"showBelow": "0",
"groups": [
{
"id": "arcs",
"items": [
{
"id": "national-cs-bg",
"type": "rectangle",
...