FusionCharts - Get chart data

Created using FusionCharts Suite XT - www.fusioncharts.com

by Nabajeet Sonowal

HTML

<script src="http://static.fusioncharts.com/code/develop/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/develop/fusioncharts.charts.js"></script>
<script src="http://static.fusioncharts.com/code/develop/themes/fusioncharts.theme.fint.js"></script>
<div id="chart-container">FusionCharts will render here</div>
<div id="chart-data">Click on a button to get the chart data using the appropriate method</div>
<input type="button" value="getChartData" id="button-getChartData" />
<!-- Obtain chart's data using the following functions: 1) getXMLData() 2) getChartData('xml') 3) getXML() - Deprecated Click on any of the buttons to obtain data thorugh that method. -->

CSS

input {
    margin: 10px;
    font-size: 10px;
}
#chart-data {
    backgound-color: #f0f0f0;
    border: #fff000 1px solid;
    margin: 10px;
    padding: 10px;
    font-size: 11px;
}

JavaScript

FusionCharts.ready(function () {
    var revenueChart = new FusionCharts({
        id: "mychart",
        type: 'realtimecolumn',
        renderAt: 'chart-container',
        width: '600',
        height: '250',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "caption": "Online Transactions per 10 seconds",
                    "subCaption": "HarrysSupermart.com",
                    "showrealtimevalue": "1",
                    "yaxismaxvalue": "10",
                    "numdisplaysets": "10",

                    "labeldisplay": "rotate",
                    "slantLabels": "1",
                    "showLegend": "0",
                    "showValues": "0",
                    "numbersuffix": " Transactions",
                    "showlabels": "1",
                    "showRealTimeValue": "0",

                //Cosmetics
                "paletteColors": "#0075c2,#1aaf5d",
                    "baseFontColor": "#333333",
                    "baseFont": "Helvetica Neue,Arial",
                    "captionFontSize": "14",
                    "subcaptionFontSize": "14",
                    "subcaptionFontBold": "0",
                    "showBorder": "0",
                    "bgColor": "#ffffff",
                    "showShadow": "0",
                    "canvasBgColor": "#ffffff",
                    "canvasBorderAlpha": "0",
                    "divlineAlpha": "100",
                    "divlineColor": "#999999",
                    "divlineThickness": "1",
                    "divLineIsDashed": "1",
                    "divLineDashLen": "1",
                    "divLineGapLen": "1",
                    "usePlotGradientColor": "0",
                    "showplotborder": "0",
                    "valueFontColor": "#ffffff",
                    "placeValuesInside": "1",
                    "rotateValues": "1",
                    "showXAxisLine": "1",
                    "xAxisLineThickness": "1",
                   ...