Angular Gauge - Configuring hover effect on dial
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 - Configuring dial's hover effect.
Element
# Dial
Attributes:
# showHoverEffect - Whether to display hover effect on charts. (Defined in chart element)
# bgHoverColor - Specifies the fill color for the dial on hover
# bgHoverAlpha - Specifies the transparency for the dial on hover
# BorderHoverColor - Specifies the border color for the dial on hover
# BorderHoverAlpha - Specifies the border transparency for the dial on hover
# BorderHoverThickness - Specifies the border thickness for the dial on hover
-->
<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": "Customer Satisfaction Score",
"subcaption": "Last week",
"lowerLimit": "0",
"upperLimit": "100",
"showHoverEffect": "1",
"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",
"bgHoverColor": "#cccccc",
"bgHoverAlpha": "80",
"BorderHoverColor": "#999999",
"BorderHoverAlpha": "80",
"BorderHoverThickness": "2",
"topWidth": "2",
"rearExtension": "15"
}]
}
}
}).render();
});