FusionCharts - Hover effects in Linear Gauge

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>
<!--Hover effects in Horizontal Linear Gauge showing Server CPU Utilization using attributes:

    # pointerBgHoverColor - Specifies the fill color for the pointer on hover.(In Hex)
    # pointerBgHoverAlpha - Specifies the fill alpha for the pointer on hover. (0-100)
    # showBorderOnHover - Specifies whether the border for the pointer will be shown on hover. Boolean (0/1).
    # pointerBorderHoverThickness - Specifies the border thickness for the pointer on hover. (In pixel)
    # pointerBorderHoverColor - Specifies the border color for the pointer on hover.(In Hex)
    # pointerBorderHoverAlpha - Specifies the border alpha for the pointer on hover. (0-100)
    # pointerHoverRadius - Specifies the radius of the pointer on hover.  (In pixel)
    # showHoverAnimation - Specifies whether animation should be enabled for the plot on hover. Boolean (0/1).

-->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var cpuGauge = new FusionCharts({
      type: 'hlineargauge',
      renderAt: 'chart-container',
      id: 'cpu-linear-gauge',
      width: '400',
      height: '190',
      dataFormat: 'json',
      dataSource: {
        "chart": {
          "theme": "fusion",
          "caption": "Server CPU Utilization",
          "lowerLimit": "0",
          "upperLimit": "100",
          "numberSuffix": "%",
          "chartBottomMargin": "40",
          "valueFontSize": "11",
          "valueFontBold": "0",

          //Configuring hover effects on pointer
          "showHoverAnimation": "1",
          "pointerBgHoverColor": "#0075c2",
          "pointerBgHoverAlpha": "100",
          "showBorderOnHover": "1",
          "pointerBorderHoverThickness": "2",
          "pointerBorderHoverColor": "#333333",
          "pointerBorderHoverAlpha": "100",
          "pointerHoverRadius": "11",

          "gaugeFillMix": "{light-10},{light-70},{dark-10}",
          "gaugeFillRatio": "40,20,40"
        },
        "colorRange": {
          "color": [{
              "minValue": "0",
              "maxValue": "35",
              "label": "Low",
            },
            {
              "minValue": "35",
              "maxValue": "70",
              "label": "Moderate",
            },
            {
              "minValue": "70",
              "maxValue": "100",
              "label": "High",
            }
          ]
        },
        "pointers": {
          "pointer": [{
            "value": "75"
          }]
        }
      }
    })
    .render();
});