FusionCharts - Gallery Example - Bubble 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>
<!-- A Bubble Chart showing sales analysis of shoes of different brands for Harry's Supermart for last month. -->

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

JavaScript

FusionCharts.ready(function() {
  var conversionChart = new FusionCharts({
    type: 'bubble',
    renderAt: 'chart-container',
    width: '600',
    height: '300',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "theme": "fusion",
        "caption": "Sales Analysis of Shoe Brands",
        "subcaption": "Last Quarter",
        "xAxisMinValue": "0",
        "xAxisMaxValue": "100",
        "yAxisMinValue": "0",
        "yAxisMaxValue": "30000",
        "plotFillAlpha": "70",
        "plotFillHoverColor": "#6baa01",
        "showPlotBorder": "0",
        "xAxisName": "Average Price",
        "yAxisName": "Units Sold",
        "numDivlines": "2",
        "xNumberPrefix": "$",
        "showValues": "1",
        "showCanvasBorder": "0",
        "xAxisLabelMode": "MIXED",
        "showTrendlineLabels": "0",
        "valueFontSize": "10",
        "plotTooltext": "$name : Profit Contribution - $zvalue%"
      },
      "categories": [{
        "category": [{
          "label": "0",
          "x": "0"
        }, {
          "label": "$10",
          "x": "10",
          "showverticalline": "1"
        }, {
          "label": "$30",
          "x": "30",
          "showverticalline": "1"
        }, {
          "label": "$50",
          "x": "50",
          "showverticalline": "1"
        }, {
          "label": "$70",
          "x": "70",
          "showverticalline": "1"
        }, {
          "label": "$90",
          "x": "90",
          "showverticalline": "1"
        }]
      }],
      "dataset": [{
        "color": "#00aee4",
        "data": [{
          "x": "80",
          "y": "15000",
          "z": "24",
          "name": "Nike"
        }, {
          "x": "60",
          "y": "18500",
          "z": "26",
          "name": "Adidas"
        }, {
          "x": "50",
          "y": "19450",
          "z": "19",
          "name": "Puma"
        }, {
          "x": "65",
          "y": "10500",
          "z": "8",
          "name": "Fila"
       ...