FusionCharts - Configuring Tick Mark Display Attributes 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>
<!-- 
    Tick Mark and Values position, distance, height, number, value step Configuration in HLED Gauge. 
    Attributes: 
		# ticksBelowGauge- Set to 0,
		# tickMarkDistance- Set to 5,
		# tickValueDistance- Set to 2,
        # adjustTM - Set to 0
		# majorTMNumber- Set to 9,
        # majorTMHeight - Set to 12,
		# minorTMNumber- Set to 4,
        # minorTMHeight - Set to 7,
        # tickValueStep - Set to 2
		
                
-->

<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var chart = new FusionCharts({
      type: 'hled',
      renderAt: 'chart-container',
      width: '450',
      height: '180',
      dataFormat: 'json',
      dataSource: {
        "chart": {
          "theme": "fusion",
          "caption": "Fuel Level Indicator",
          "lowerLimit": "0",
          "upperLimit": "100",
          "numberSuffix": "%",
          "lowerLimitDisplay": "Empty",
          "upperLimitDisplay": "Full",

          //Tick Marks auto adjustment off
          "adjustTM": "0",

          //Positions
          "ticksBelowGauge": "0",
          "tickMarkDistance": "5",
          "tickValueDistance": "2",

          // Major Tick Marks
          "majorTMNumber": "9",
          "majorTMHeight": "12",

          //Minor Tick Marks
          "minorTMNumber": "4",
          "minorTMHeight": "7",

          //Tick value step          
          "tickValueStep": "2",

          "chartBottomMargin": "20",
          "ledSize": "4",
          "theme": "fusion"
        },
        "colorRange": {
          "color": [{
              "minValue": "0",
              "maxValue": "45",
              "code": "#e44a00"
            },
            {
              "minValue": "45",
              "maxValue": "75",
              "code": "#f8bd19"
            },
            {
              "minValue": "75",
              "maxValue": "100",
              "code": "#6baa01"
            }
          ]
        },
        "value": "92"
      }

    })
    .render();
});