Controlling bubble sizes for Bubble Chart - Javascript highcharts

Javascript examples for highcharts:Bubble Chart

Description

Controlling bubble sizes for Bubble Chart

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> 
      <script type="text/javascript">
$(function () {/*from  w w  w . j a va  2s  .co  m*/
    $('#container').highcharts({
        chart: {
            renderTo: 'container',
            type: 'bubble',
            zoomType: 'xy'
        },
        xAxis: {
            min: 0,
            max: 50
        },
        yAxis: {
            min: 0,
            max: 50
        },
        title: {
            text: 'Highcharts Bubbles'
        },
        series: [{
            name: '', data: [{x:0,y:0,z:0}], showInLegend: false, color: '#FFFFFF', enableMouseTracking: false
        }, {
            name: 'SERIES 1', data: [{x:37,y:35,z:50}]
        }, {
            name: 'SERIES 2', data: [{x:25,y:10,z:100}]
        }, {
            name: 'SERIES 3', data: [{x:47,y:47,z:150}]
        }]
    });
});

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <script src="https://code.highcharts.com/highcharts-more.js"></script> 
      <script src="https://code.highcharts.com/modules/exporting.js"></script> 
      <div id="container" style="height: 400px; width: 600px; margin: 0 auto"></div>  
   </body>
</html>

Related Tutorials