FusionCharts - Customizing hover effects in Cylinder 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>
<!-- Customizing hover effects in Cylinder gauge showing the consumption of Diesel in Generator in Bakersfield Central outlet using attributes:
# cylFillHoverColor - To set the cylinder fill color on hover/touch. (In Hex)
# cylFillHoverAlpha - To set the transparency of cylinder on hover/touch. (0-100)
-->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var fuelWidget = new FusionCharts({
type: 'cylinder',
dataFormat: 'json',
id: 'fuelMeter',
renderAt: 'chart-container',
width: '200',
height: '350',
dataSource: {
"chart": {
"theme": "fusion",
"caption": "Diesel Level in Generator",
"subcaption": "Bakersfield Central",
"lowerLimit": "0",
"upperLimit": "120",
"lowerLimitDisplay": "Empty",
"upperLimitDisplay": "Full",
"numberSuffix": " ltrs",
"showValue": "1",
"chartBottomMargin": "25",
//Customizing cylinder fill color on hover/touch
"cylFillHoverColor": "#0099fd",
//Customizing cylinder transparency on hover/touch
"cylFillHoverAlpha": "85"
},
"value": "75"
}
}).render();
});