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

JavaScript

FusionCharts.ready(function() {
  var tempVsSalesChart = new FusionCharts({
    type: 'scatter',
    renderAt: 'chart-container',
    width: '600',
    height: '350',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "caption": "Sales of Beer & Ice-cream vs Temperature",
        "subCaption": "Los Angeles Topanga",
        "xAxisName": "Average Day Temperature",
        "yAxisName": "Sales (In USD)",
        "xAxisMinValue": "23",
        "xAxisMaxValue": "95",
        "yNumberPrefix": "$",
        "xNumberSuffix": "&deg; F",
        "showYAxisLine": "1",
        "theme": "fusion"
      },
      "categories": [{
        "verticalLineDashed": "1",
        "verticalLineDashLen": "1",
        "verticalLineDashGap": "1",
        "verticalLineThickness": "1",
        "verticalLineColor": "#000000",
        "category": [{
            "x": "23",
            "label": "23\xB0 F",
            "showverticalline": "0"
          },
          {
            "x": "32",
            "label": "32\xB0 F",
            "showverticalline": "1"
          },
          {
            "x": "50",
            "label": "50\xB0 F",
            "showverticalline": "1"
          },
          {
            "x": "68",
            "label": "68\xB0 F",
            "showverticalline": "1"
          },
          {
            "x": "80",
            "label": "80\xB0 F",
            "showverticalline": "1"
          },
          {
            "x": "95",
            "label": "95\xB0 F",
            "showverticalline": "1"
          }
        ]
      }],
      "dataset": [{
        "seriesname": "Ice Cream",
        "showregressionline": "1",
        "data": [{
            "x": "23",
            "y": "1560"
          },
          {
            "x": "24",
            "y": "1500"
          },
          {
            "x": "24",
            "y": "1680"
          },
          {
            "x": "25",
            "y": "1780"
          },
          {
            "x": "25",
            "y":...