FusionCharts - Configuring tick mark cosmetics 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>
<!--  Configuring tick mark cosmetics in Cylinder gauge showing the consumption of Diesel in Generator in Bakersfield Central outlet using attributes:

    # majorTMColor - To set the color of major tick mark (In Hex)
    # majorTMAalpha -  To set the transparency of major tick mark  (0-100)
    # majorTMHeight - To set the height of major tick mark (In pixel)
    # majorTMThickness - To set the thickness of major tick mark (In pixel)
    # minorTMColor - To set the color of minor tick mark (In Hex)
    # minorTMAlpha - To set the transparency of minor tick mark  (0-100)
    # minorTMHeight - To set the height of minor tick mark (In pixel)
    # minorTMThickness - To set the thickness of minor tick mark (In pixel)
    # tickmarkDistance -  To set the distance between the gauge and tick marks.    
             
-->
<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",
        //Tick mark cosmetics
        "majorTMColor": "#1aaf5d",
        "majorTMAalpha": "100",
        "majorTMHeight": "10",
        "majorTMThickness": "2",
        "minorTMColor": "#1aaf5d",
        "minorTMAlpha": "100",
        "minorTMHeight": "7",
        "minorTMThickness": "1",
        "tickmarkDistance": "5"
      },
      "value": "75"
    }
  }).render();
});