FusionCharts - Gallery Example - ErrorBar 2D

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>
<!-- ErrorBar 2D chart showing life span of systems used in top 3 stores with error values

-->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var lifeSpanChart = new FusionCharts({
    type: 'errorbar2d',
    renderAt: 'chart-container',
    width: '700',
    height: '400',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "theme": "fusion",
        "caption": "Machinery lifespan range",
        "subcaption": "Means & standard deviations",
        "xAxisName": "Systems",
        "yAxisName": "Life Span",
        "numberSuffix": " Years",
        "halfErrorBar": "0",
        "showXAxisLine": "1",
        "axisLineAlpha": "25",
        "showHoverEffect": "1"
      },
      "categories": [{
        "category": [{
            "label": "Central AC"
          },
          {
            "label": "Computers"
          },
          {
            "label": "Bar-code Scanners"
          },
          {
            "label": "Packaging Machines"
          },
          {
            "label": "Chilling Compartments"
          }
        ]
      }],
      "dataset": [{
        "seriesname": "Daly City Serramonte",
        "data": [{
            "value": "8",
            "errorvalue": "2"
          },
          {
            "value": "3",
            "errorvalue": "0.5"
          },
          {
            "value": "2",
            "errorvalue": "1"
          },
          {
            "value": "6",
            "errorvalue": "1.8"
          },
          {
            "value": "8",
            "errorvalue": "1.2"
          }
        ]
      }, {
        "seriesname": "Bakersfield Central",
        "data": [{
            "value": "7",
            "errorvalue": "1"
          },
          {
            "value": "4",
            "errorvalue": "0.5"
          },
          {
            "value": "2",
            "errorvalue": "1"
          },
          {
            "value": "4",
            "errorvalue": "0.8"
          },
          {
            "value": "7",
            "errorvalue": "1"
          }
        ]
      }, {
        "seriesname": "Garden Groove harbour",
       ...