FusionCharts - Configuring LED Size & Gap in LED 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>
<!--
Configuring LED Size & Gap in HLED Gauge
Attributes:
# ledSize - Set to 5
# ledGap - Set to 1
-->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var chart = new FusionCharts({
type: 'hled',
renderAt: 'chart-container',
width: '400',
height: '150',
dataFormat: 'json',
dataSource: {
"chart": {
"theme": "fusion",
"caption": "Fuel Level Indicator",
"lowerLimit": "0",
"upperLimit": "100",
"lowerLimitDisplay": "Empty",
"upperLimitDisplay": "Full",
"numberSuffix": "%",
"valueFontSize": "12",
"showhovereffect": "1",
"ledSize": "5",
"ledGap": "1",
"ChartBottomMargin": "20",
"theme": "fusion"
},
"colorRange": {
"color": [{
"minValue": "0",
"maxValue": "45"
},
{
"minValue": "45",
"maxValue": "75"
},
{
"minValue": "75",
"maxValue": "100"
}
]
},
"value": "92"
}
})
.render();
});