FusionCharts - Gallery Example - Real-time Stacked Column Chart in Javascript.

Created using FusionCharts Suite XT - www.fusioncharts.com

by FusionCharts

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>
<!-- 
    Real-time stacked column chart no. of  live visitors on site, updated every 5 seconds
-->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var stockPriceChart = new FusionCharts({
      id: "stackRealTimeChart",
      type: 'realtimestackedcolumn',
      renderAt: 'chart-container',
      width: '500',
      height: '300',
      dataFormat: 'json',
      dataSource: {
        "chart": {
          "theme": "fusion",
          "caption": "Live Visitors on Site",
          "subCaption": "Every 5 seconds",
          "xAxisName": "Time",
          "yAxisName": "No. of visitors",
          "refreshinterval": "5",
          "numberSuffix": "s",
          "yaxisminvalue": "0",
          "yaxismaxvalue": "60",
          "numdisplaysets": "10",
          "labeldisplay": "rotate",
          "showValues": "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",
          "usePlotGradientColor": "0",
          "showPlotBorder": "0",
          "valueFontColor": "#ffffff",
          "placeValuesInside": "1",
          "canvasBgColor": "#ffffff",
          "canvasBorderAlpha": "0",
          "divlineAlpha": "100",
          "divlineColor": "#999999",
          "divlineThickness": "1",
          "divLineIsDashed": "1",
          "divLineDashLen": "1",
          "divLineGapLen": "1",
          "showXAxisLine": "1",
          "xAxisLineThickness": "1",
          "xAxisLineColor": "#999999",
          "showAlternateHGridColor": "0",
          "legendBgAlpha": "0",
          "legendBorderAlpha": "0",
          "legendShadow": "0",
          "legendItemFontSize": "10",
          "legendItemFontColor": "#666666"

        },
        "categories": [{
          "category": [{
            "label": "Day Start"
          }]
        }],
        "dataset": [{
     ...