FusionCharts - Period blocks in Spark column chart

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>
<!-- Specifying Period blocks in Sparkcolumn chart using attributes:

     # periodlength - To show period blocks on the chart. This helps interpret periods on the chart.
    # periodcolor - Fill color of the period blocks (In Hex)
    # periodalpha - Alpha of the period blocks (0-100)

    
    Deviation from theme
        # chartBottomMargin
 -->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var revenueChart = new FusionCharts({
      type: 'sparkcolumn',
      renderAt: 'chart-container',
      width: '450',
      height: '80',
      dataFormat: 'json',
      dataSource: {
        "chart": {
          "theme": "fusion",
          "caption": "Revenue by Month",
          "subcaption": "Last year",
          "subCaptionFontSize": "11",
          "numberPrefix": "$",
          "highColor": "#6baa01",
          "lowColor": "#e44a00",
          "chartBottomMargin": "30",
          "periodlength": "3",
          "periodcolor": "#cccccc",
          "periodalpha": "50"
        },
        "dataset": [{
          "data": [{
              "value": "783000"
            },
            {
              "value": "601000"
            },
            {
              "value": "515000"
            },
            {
              "value": "315900"
            },
            {
              "value": "388000"
            },
            {
              "value": "433000"
            },
            {
              "value": "910000"
            },
            {
              "value": "798000"
            },
            {
              "value": "483300"
            },
            {
              "value": "562000"
            },
            {
              "value": "359400"
            },
            {
              "value": "485000"
            }
          ]
        }]
      }
    })
    .render();
});