FusionCharts - Gallery Example - Bar 2D 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>
<!-- Simple implementation of the Bar 2D chart -->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var topStores = new FusionCharts({
      type: 'bar2d',
      renderAt: 'chart-container',
      width: '500',
      height: '400',
      dataFormat: 'json',
      dataSource: {
        "chart": {
          "theme": "fusion",
          "caption": "Top 5 Stores by Sales",
          "subCaption": "Last month",
          "yAxisName": "Sales (In USD)",
          "numberPrefix": "$",
          "showValues":"1",
          "canvasTopPadding": "20",
        //  "yAxisMaxValue":"1200",
          "placevaluesinside":"0",
          "showValues": "0"
        },

        "data": [{
            "label": "Bakersfield Central",
            "value": "960",
            "showValue": "1"
          },
          {
            "label": "Garden Groove harbour",
            "value": "560"
          },
          {
            "label": "Los Angeles Topanga",
            "value": "59"
          },
          {
            "label": "Compton-Rancho Dom",
            "value": "52"
          },
          {
            "label": "Daly City Serramonte",
            "value": "33"
          }
        ],
        "annotations": {
        	"groups": [{
          	"showBelow": "0",
          	"items": [{
            	"type": "text",
              "text": "$560",
              "x": "$dataset.0.set.1.ENDX-5",
              "y": "$dataset.0.set.1.CENTERY-10",
              "align": "RIGHT",
              "fontColor": "#FFFFFF"
            }]
          }]
        }
      }
    })
    .render();
});