Angular Gauge - Adding a simple trend arc
Created using FusionCharts Suite XT - www.fusioncharts.com
by FusionCharts
HTML
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
<!-- AngularGauge - Adding a simple trend arc
Element
# trendpoints
Attribute:
# startValue - The starting value for the trend-point
# endValue - The ending value for the trend-point
# displayValue - Display label for the trend-point/trend-arc (optional)
# valueInside - Whether to display the trend-point value inside the gauge (optional)
# color - Color of the trend point and its associated text (optional)
# alpha - Opacity of the color
-->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var cSatScoreChart = new FusionCharts({
type: 'angulargauge',
renderAt: 'chart-container',
width: '400',
height: '300',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Average Customer Satisfaction Score",
"subcaption": "Actual vs Target",
"lowerLimit": "0",
"upperLimit": "100",
"showValue": "1",
"valueBelowPivot": "1",
"gaugeFillMix": "{dark-40},{light-40},{dark-20}",
"theme": "fusion"
},
"colorRange": {
"color": [{
"minValue": "0",
"maxValue": "50",
"code": "#e44a00"
},
{
"minValue": "50",
"maxValue": "75",
"code": "#f8bd19"
},
{
"minValue": "75",
"maxValue": "100",
"code": "#6baa01"
}
]
},
"dials": {
"dial": [{
"value": "67"
}]
},
"trendpoints": {
"point": [{
"startValue": "80",
"endValue": "100",
"displayValue": "Target",
"valueInside": "1",
"color": "#0075c2",
"alpha": "80"
}]
}
}
}).render();
});