Angular Gauge - Configuring tick mark 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 - Configuring tick mark cosmetics
Attributes:
# majorTMColor - Major tick marks color. Use hex color code (e.g #cccccc)
# majorTMAlpha - Major tick marks transparency. In the range of 0 to 100
# majorTMHeight - Height of major tick marks in pixels.
# majorTMThickness - Thickness of major tick mark line.
# minorTMColor - Color of minor tick marks. Use hex color code (e.g #cccccc)
# minorTMAlpha - Transparency of minor tick marks. In the range of 0 to 100
# minorTMHeight - Height of minor tick marks in pixels.
# minorTMThickness - Thickness of minor tick marks in pixels.
-->
<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 week",
"lowerLimit": "0",
"upperLimit": "100",
"showValue": "1",
"valueBelowPivot": "1",
"majorTMNumber": "10",
"majorTMColor": "#333333",
"majorTMAlpha": "100",
"majorTMHeight": "15",
"majorTMThickness": "2",
"minorTMNumber": "4",
"minorTMColor": "#666666",
"minorTMAlpha": "100",
"minorTMHeight": "12",
"minorTMThickness": "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"
}]
}
}
}).render();
});