FusionCharts -Customizing Cylinder origin, radius & height

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 cylinder origin, radius & height of a Cylinder gauge showing the consumption of Diesel in Generator in Bakersfield Central outlet using atributes:

    Note: Origin of the cylinder refers to the bottom left portion of the cylinder

    # cyloriginx - x position w.r.t the origin
    # cyloriginy - y position w.r.t the origin
    # cylradius - Radius of the Cylinder
    # cylheight - Height of the Cylinder

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

JavaScript

FusionCharts.ready(function() {
  var fuelWidget = new FusionCharts({
    type: 'cylinder',
    dataFormat: 'json',
    renderAt: 'chart-container',
    width: '400',
    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",
        //Customizing the origin x position
        "cyloriginx": "100",
        //Customizing the origin y position
        "cyloriginy": "260",
        //Setting the radius of the Cylinder
        "cylradius": "40",
        //Setting the height of the Cylinder
        "cylheight": "150"
      },
      "value": "75"
    }
  }).render();
});
100