FusionCharts - Gallery Example - SparkColumn 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>
<!-- A simple example of SparkColumn chart -->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var sparkchart = new FusionCharts({
      type: 'sparkcolumn',
      renderAt: 'chart-container',
      width: '450',
      height: '70',
      dataFormat: 'json',
      dataSource: {
        "chart": {
          "theme": "fusion",
          "caption": "Revenue by Month",
          "subcaption": "Last year",
          "chartTopMargin": "10",
          "chartBottomMargin": "10",
          "chartRightMargin": "10",
          "numberPrefix": "$",
          "showBorder": "0",
          "canvasBorderThickness": "0",
          "bgColor": "#ffffff",
          "plotFillColor": "#0075c2",
          "highColor": "#1aaf5d",
          "lowColor": "#8e0000",
          "showHoverEffect": "1"
        },
        "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();
});