FusionCharts - Thermometer Gauge - A simple example

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>
<!-- A simple example of Thermometer gauge -->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function () {
    var updateAnnotation,
    chart = new FusionCharts({
        type: 'thermometer',
        renderAt: 'chart-container',
        id: 'myThm',
        width: '240',
        height: '310',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "caption": "Temperature Monitor",
                    "subcaption": " Central cold store",
                    "lowerLimit": "-10",
                    "upperLimit": "0",

                    "decimals": "1",
                    "numberSuffix": "°C",
                    "showhovereffect": "1",
                    "thmFillColor": "#008ee4",
                    "showGaugeBorder": "1",
                    "gaugeFillColor": "#00ff00",
                    "gaugeBorderColor": "#008ee4",
                    "gaugeBorderThickness": "2",
                    "gaugeBorderAlpha": "30",
                    "thmOriginX": "100",
                    "chartBottomMargin": "20",
                    "valueFontColor": "#000000",
                    "theme": "fint"
            },
                "value": "-6",
            //All annotations are grouped under this element
            "annotations": {
                "showbelow": "0",
                    "groups": [{
                    //Each group needs a unique ID
                    "id": "indicator",
                        "items": [
                    //Showing Annotation
                    {
                        "id": "background",
                        //Rectangle item 
                        "type": "rectangle",
                            "alpha": "50",
                            "fillColor": "#AABBCC",
                            "x": "$gaugeEndX-40",
                            "tox": "$gaugeEndX",
                            "y": "$gaugeEndY+54",
                            "toy": "$gaugeEndY+72"
                    }]
                }]

            },
        },
            "events": {
           ...