FusionCharts - Gallery Example - Inverse MS Area 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>
<!-- Inverse Area chart to plot daily bounce rate for last week -->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var siteTrafficChart = new FusionCharts({
    type: 'inversemsarea',
    renderAt: 'chart-container',
    width: '700',
    height: '400',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "theme": "fusion",
        "caption": "Daily bounce rate",
        "subCaption": "Last week",
        "xAxisName": "Day",
        "yAxisName": "Percentage",
        "numberSuffix": "%"
      },
      "categories": [{
        "category": [{
            "label": "Mon"
          },
          {
            "label": "Tue"
          },
          {
            "label": "Wed"
          },
          {
            "label": "Thu"
          },
          {
            "label": "Fri"
          },
          {
            "label": "Sat"
          },
          {
            "label": "Sun"
          }
        ]
      }],
      "dataset": [{
          "seriesname": "food.hsm.com",
          "data": [{
              "value": "27"
            },
            {
              "value": "22"
            },
            {
              "value": "25"
            },
            {
              "value": "27"
            },
            {
              "value": "21"
            },
            {
              "value": "29"
            },
            {
              "value": "22"
            }
          ]
        },
        {
          "seriesname": "cloth.hsm.com",
          "data": [{
              "value": "42"
            },
            {
              "value": "38"
            },
            {
              "value": "39"
            },
            {
              "value": "36"
            },
            {
              "value": "43"
            },
            {
              "value": "44"
            },
            {
              "value": "35"
            }
          ]
        }
      ]
    }
  }).render();
});