Angular Gauge - Configuring gauge gradient fill
Created using FusionCharts Suite XT - www.fusioncharts.com
by Moonmi Sonowal
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>
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function () {
var cSatScoreChart = new FusionCharts({
type: 'angulargauge',
renderAt: 'chart-container',
width: '300',
height: '150',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Customer Satisfaction Score",
"subcaption": "Last week",
'gaugeOuterRadius':'72',
'gaugeInnerRadius':'50',
"lowerLimit": "0",
"upperLimit": "100",
"gaugeFillMix": "{light-10},{light-30},{light-10},{dark-30},{dark-40}, {dark-30}",
"gaugeFillRatio": "20,40,70",
"theme": "fint",
"showValue":"1",
"valueBelowPivot":"1"
},
"colorRange": {
"color": [
{
"minValue": "0",
"maxValue": "100",
"code": "#004a00"
}
]
},
"dials": {
"dial": [{
"value": "87"
}]
}
}
}).render();
});