AngularGauge - FusionWidgets

Created using FusionCharts Suite XT - www.fusioncharts.com

by Shamasis Bhattacharya

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: '300',
        dataFormat: 'json',
        dataSource: {
            "chart": {                                
                "caption": "Customer Satisfaction Score",
                "subcaption": "Los Angeles Topanga",
                "plotToolText": "Current Score: $value",
                "theme": "fint",                              
                "chartBottomMargin": "50",                
                "showValue": "1"
            },
            "colorRange": {
                "color": [{
                    "minValue": "0",
                    "maxValue": "4.5",
                    "code": "#e44a00"
                }, {
                    "minValue": "4.5",
                    "maxValue": "7.5",
                    "code": "#f8bd19"
                }, {
                    "minValue": "7.5",
                    "maxValue": "10",
                    "code": "#6baa01"
                }]
            },
            "dials": {
                "dial": [{
                    "value": "8.9"
                }]
            },
            "trendPoints": {
                "point": [
                    {
                        "startValue": "6.8",                        
                        "color": "#0075c2",
                        "dashed": "1"
                    },
                    {
                        "startValue": "9.5",                        
                        "color": "#0075c2",
                        "dashed": "1"
                    },
                    {
                        "startValue": "6.8",
                        "endValue": "9.5",
                        "color": "#0075c2",                        
                        "radius": "185",
                        "innerRadius": "80"
                    }
                ]                
  ...