Angular Gauge - Configure dial value cosmetics

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 - Dial value cosmetic configuration

Element    
    # Dial - adding more than one

Attributes:
    # valueFontSize - Specifies the value font size
    # valueFontBold - Whether value font should be bold 
    # valueBgColor - Sets the background color for value text
    # valueBorderColor - Sets the border color around the value text
    # valueAlpha - Sets the transparency for both font and background 
    # valueBorderThickness - Sets the value border thickness
    # valueBorderRadius - Sets the value border radius
    # valueBorderDashed - Whether the value of border should be das
    # valueBorderDashGap - Sets the length of each gap between dash
    # valueBorderDashLen - Sets the length of each dash
    
There are also other attributes available in these regard. Please refer to the document for a complete list.
-->
<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": "Last year vs Current year",
        "lowerLimit": "0",
        "upperLimit": "100",
        "valueFontSize": "16",
        "valueFontBold": "1",
        "valueBgColor": "#cccccc",
        "valueBorderColor": "#999999",
        "valueAlpha": "80",
        "valueBorderThickness": "2",
        "valueBorderRadius": "2",
        "valueBorderDashed": "1",
        "valueBorderDashGap": "2",
        "valueBorderDashLen": "5",
        "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",
            "showValue": "1",
            "valueX": "190",
            "valueY": "180",
            "tooltext": "Last year's average : $value",
            "rearExtension": "15"
          },
          {
            "value": "78",
            "showValue": "1",
            "valueX": "260",
            "valueY": "220",
            "tooltext": "Current year's average : $value",
            "rearExtension": "15"
          }
        ]
      }
    }
  }).render();
});