250579

Gauge showing % in value but not in ticks

by Nabajeet 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>
<!-- Showcase of Customer Satisfaction Score for current week using Angular Gauge. Configuring the Lower and Upper limit as specific texts.

Attributes:
    #. lowerLimitDisplay - set to Bad
    #. upperLimitDisplay - set to Good

-->

<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: '250',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "caption": "Customer Satisfaction Score",
                "subcaption": "Last week",
                "lowerLimit": "0",
                "upperLimit": "100",
                "lowerLimitDisplay": "Bad",
                "upperLimitDisplay": "Good",
                "showValue": "1",
                "valueBelowPivot": "1",
                "theme": "fint"
            },
            "colorRange": {
                "color": [
                    {
                        "minValue": "0",
                        "maxValue": "50",
                        "code": "#e44a00"
                    },
                    {
                        "minValue": "50",
                        "maxValue": "75",
                        "code": "#f8bd19"
                    },
                    {
                        "minValue": "75",
                        "maxValue": "100",
                        "code": "#6baa01"
                    }
                ]
            },
            "dials": {
                "dial": [{
                    "value": "67"
                }]
            },
            "annotations": {
                "origw": "450",
                    "origh": "300",
                    "autoscale": "1",
                    "showBelow": "0",
                    "groups": [{
                    "id": "arcs",
                        "items": [{
                        "id": "national-cs-text",
                            "type": "Text",
                            "color": "#000000",
                            "label": "%",
                            "fontSize": "15",
                            "align": "left",
                            "x": "$chartCenterX+15",
                           ...