FusionCharts - Gallery Example - ErrorScatter 2D 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>
<!-- ErrorScatter chart showing Revenue forecast for next year -->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var revForecastChart = new FusionCharts({
    type: 'errorscatter',
    renderAt: 'chart-container',
    width: '700',
    height: '400',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "theme": "fusion",
        "xaxisname": "Month",
        "yaxisname": "Revenue (In USD)",
        "caption": "Revenue forecast",
        "subcaption": "For Next Year",
        "halfverticalerrorbar": "0",
        "showlegend": "0",
        "numberPrefix": "$",
        "baseFontColor": "#333333",
        "toolTipColor": "#ffffff",
        "toolTipBorderThickness": "0",
        "toolTipBgColor": "#000000",
        "toolTipBgAlpha": "80",
        "toolTipBorderRadius": "2",
        "toolTipPadding": "5",
        "divlineAlpha": "100",
        "divlineColor": "#999999",
        "divlineThickness": "1",
        "divLineIsDashed": "1",
        "divLineDashLen": "1",
        "divLineGapLen": "1"
      },
      "categories": [{
        "category": [{
            "label": "Jan",
            "x": "20",
          },
          {
            "label": "Feb",
            "x": "30",
          },
          {
            "label": "Mar",
            "x": "40",
          },
          {
            "label": "Apr",
            "x": "50",
          },
          {
            "label": "May",
            "x": "60",
          },
          {
            "label": "Jun",
            "x": "70",
          },
          {
            "label": "Jul",
            "x": "80",
          },
          {
            "label": "Aug",
            "x": "90",
          }, {
            "label": "Sep",
            "x": "100",
          },
          {
            "label": "Oct",
            "x": "110",
          },
          {
            "label": "Nov",
            "x": "120",
          },
          {
            "label": "Dec",
            "x": "130",
          }
        ]
      }],
      "dataset": [{
        "seriesname": "This Year",
        "color": "",
       ...