Show x y axis using annotations

Showing the x axis and y axis

by Nabajeet Sonowal

HTML

<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.carbon.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.ocean.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.zune.js"></script>
<!-- Configuring charts with themes changes their cosmetic attributes. This gives a coherent look and feel across multiple charts on a page. Attribute: # theme - sets the theme name, in this case, "zune". Note: Theme can set to any of zune / carbon / ocean. Whenever "theme" attribute value is changed, the chart look and feel will change. -->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function () {
    var revenueChart = new FusionCharts({
        type: 'mscolumn2d',
        renderAt: 'chart-container',
        width: '500',
        height: '300',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "caption": "Comparison of Quarterly Revenue",
                    "subCaption": "Harry's SuperMart",
                    "xAxisname": "Quarter",
                    "yAxisName": "Amount ($)",
                    "numberPrefix": "$",
                // Theme can be set to "zune", "ocean" or "carbon"
                "theme": "zune"
            },
                "categories": [{
                "category": [{
                    "label": "Q1"
                }, {
                    "label": "Q2"
                }, {
                    "label": "Q3"
                }, {
                    "label": "Q4"
                }]
            }],
                "dataset": [{
                "seriesname": "Previous Year",
                    "data": [{
                    "value": "10000"
                }, {
                    "value": "11500"
                }, {
                    "value": "12500"
                }, {
                    "value": "15000"
                }]
            }, {
                "seriesname": "Current Year",
                    "data": [{
                    "value": "25400"
                }, {
                    "value": "29800"
                }, {
                    "value": "21800"
                }, {
                    "value": "26800"
                }]
            }],
            //All annotations are grouped under this element
            "annotations": {
                //Annotations on a chart can be divided across multiple groups for easy management, and manipulation through API
                "groups": [{
                    "id": "infobar",
                    //Under each group, you can define multiple items. Each item is a polygon, text or image - with...