FusionCharts - Gallery Example - Column2D Chart

Created using FusionCharts Suite XT - www.fusioncharts.com

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>
<!-- Column 2D chart showing Monthly revenues for last year -->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var revenueChart = new FusionCharts({
    type: 'column3d',
    renderAt: 'chart-container',
    width: '700',
    height: '400',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "caption": "Monthly revenue for last year",
        "subCaption": "Harry's SuperMart",
        "numberPrefix": "$",
        "theme": "fusion"
      },
      "data": [{
          "label": "1",
          "value": "420000"
        },
        {
          "label": "2",
          "value": "810000"
        },
        {
          "label": "3",
          "value": "720000"
        },
        {
          "label": "4",
          "value": "550000"
        },
        {
          "label": "5",
          "value": "910000"
        },
        {
          "label": "6",
          "value": "510000"
        },
        {
          "label": "7",
          "value": "680000"
        },
        {
          "label": "8",
          "value": "620000"
        },
        {
          "label": "9",
          "value": "610000"
        },
        {
          "label": "10",
          "value": "490000"
        },
        {
          "label": "11",
          "value": "900000"
        },
        {
          "label": "12",
          "value": "730000"
        }
      ],
      "trendlines": [{
        "line": [{
          "startvalue": "700000",
          "valueOnRight": "1",
          "displayvalue": "Monthly Target"
        }]
      }],
      "annotations": {
      	"groups": [{
        	"items": [{
          	"type": "text",
            "text": "(yen)",
            "x": "40",
            "y": "50",
            "fontColor": "#000000"
          },{
          	"type": "text",
            "text": "(day)",
            "x": "600",
            "y": "380",
            "fontColor": "#000000"
          }]
        }]
      }
    }
  }).render();
  console.log(revenueChart.getXMLData());
});