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: 'multiaxisline',
        renderAt: 'chart-container',
        width: '500',
        height: '300',
        dataFormat: 'json',
        dataSource: {
              "chart": {
                "caption": "Power Generator",
                "captionAlignment": "right",
                "xaxisname": "Time",
                "showvalues": "0",
                "divlinealpha": "100",
                "numvdivlines": "4",
                "vdivlinealpha": "0",
                "showalternatevgridcolor": "1",
                "alternatevgridalpha": "5",
                  "exportEnabled": "1",
                  "showPrintMenuItem": "1"
              },
              "categories": [
                {
                  "category": [
                    {
                      "label": "00:00s"
                    },
                    {
                      "label": "00:04s"
                    },
                    {
                      "label": "00:08s"
                    },
                    {
                      "label": "00:12s"
                    },
                    {
                      "label": "00:16s"
                    },
                    {
                      "label": "00:20s"
                    }
                  ]
                }
              ],
              "axis": [
                {
                  "title": "Power",
                  "titlepos": "left",
                  "tickwidth": "10",
                  "divlineisdashed": "1",
                  "dataset": [
                    {
                      "seriesname": "Power [W]",
                      "data": [
                        {
                          "value": "6"
                        },
                        {
                          "value": "26"
                        },
                        {
                          "value": "16"
                        },
              ...