FusionCharts - Column 2D Chart in JavaScript

Created using FusionCharts Suite XT - www.fusioncharts.com

by sanjuktamukherjee

HTML

<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.charts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!--
    A simple Column 2D chart showing monthly revenue of Harry's SuperMart for last year.
-->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function () {
    var revenueChart = new FusionCharts({
        type: 'gantt',
        renderAt: 'chart-container',
        width: '500',
        height: '300',
        dataFormat: 'json',
        dataSource: {
  "chart": {
    "useverticalscrolling": "1",
    "ganttwidthpercent": "90",
    "taskBarFillMix": "light+0",
    "ganttlinecolor": "ffffff",
    "ganttlinealpha": "20",
    "gridborderalpha": "20",
    "showtasknames": "1",
    "tooltextbgcolor": "F1F1F1",
    "showplotborder": "0",
    "tooltextbordercolor": "333333",
    "canvasborderalpha": "0",
    "showcanvasborder": "0",
    "showborder": "0",
    "dateformat": "mm/dd/yy"
  },
  "categories": [
    {
      "bgcolor": "ffffff",
      "fontcolor": "000000",
      "fontsize": "10",
      "isbold": "0",
      "align": "center",
      "category": [
        {
          "start": "06/24/2013",
          "name": "06/24/2013",
          "end": "07/01/2013",
          "color": "ffffff"
        },
        {
          "start": "07/01/2013",
          "name": "07/01/2013",
          "end": "07/08/2013",
          "color": "ffffff"
        },
        {
          "start": "07/08/2013",
          "name": "07/08/2013",
          "end": "07/15/2013",
          "color": "ffffff"
        },
        {
          "start": "07/15/2013",
          "name": "07/15/2013",
          "end": "07/22/2013",
          "color": "ffffff"
        },
        {
          "start": "07/22/2013",
          "name": "07/22/2013",
          "end": "07/29/2013",
          "color": "ffffff"
        },
        {
          "start": "07/29/2013",
          "name": "07/29/2013",
          "end": "08/05/2013",
          "color": "ffffff"
        },
        {
          "start": "08/05/2013",
          "name": "08/05/2013",
          "end": "08/12/2013",
          "color": "ffffff"
        },
        {
          "start": "08/12/2013",
          "name": "08/12/2013",
          "end": "08/19/2013",
          "color": "ffffff"
       ...