FusionCharts - Gallery Example - Multi-Series Line 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>
<!-- A simple implementation of Multi-Series Line 2D chart showing sales report of smartphones users worldwide for last 5 years-->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var salesChart = new FusionCharts({
      type: 'msline',
      renderAt: 'chart-container',
      width: '600',
      height: '400',
      dataFormat: 'json',
      dataSource: {
        "chart": {
          "caption": "Worldwide Smartphone Sales to End Users from 2011 to 2015",
          "subcaption": "By Top 3 Vendors",
          "linethickness": "2",
          "numberPrefix": "$",
          "showvalues": "0",
          "formatnumberscale": "1",
          "labeldisplay": "ROTATE",
          "slantlabels": "1",
          "divLineAlpha": "40",
          "anchoralpha": "0",
          "animation": "1",
          "legendborderalpha": "20",
          "drawCrossLine": "1",
          "crossLineColor": "#0d0d0d",
          "crossLineAlpha": "100",
          "tooltipGrayOutColor": "#80bfff",
          "theme": "fusion"
        },
        "categories": [{
          "category": [{
            "label": "Q1'12"
          }, {
            "label": "Q2'12"
          }, {
            "label": "Q3'12"
          }, {
            "label": "Q4'12"
          }, {
            "label": "Q1'13"
          }, {
            "label": "Q2'13"
          }, {
            "label": "Q3'13"
          }, {
            "label": "Q4'13"
          }, {
            "label": "Q1'14"
          }, {
            "label": "Q2'14"
          }, {
            "label": "Q3'14"
          }, {
            "label": "Q4'14"
          }, {
            "label": "Q1'15"
          }, {
            "label": "Q2'15"
          }, {
            "label": "Q3'15"
          }, {
            "label": "Q4'15"
          }, {
            "label": "Q1'16"
          }, {
            "label": "Q2'16"
          }, {
            "label": "Q3'16"
          }, {
            "label": "Q4'16"
          }]
        }],
        "dataset": [{
          "seriesname": "Samsung",
          "data": [{
            "value": "716000"
          }, {
            "value": "771700"
          }, {
            "value":...