Set bubble min/max size

Description

The following code shows how to set bubble min/max size.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'>
$(function () {<!-- w ww.java2  s.c  om-->
    $('#container').highcharts({
        chart: {
            type: 'bubble',
            plotBorderWidth: 1,
            zoomType: 'xy'
        },
        plotOptions: {
            bubble: {
                minSize: 3,
                maxSize: 50,
                zMin: 0,
                zMax: 100
            }
        },
        series: [{
            data: [
                [91, 81, 43],
                [98, 41, 89],
                [51, 40, 43],
                [-41, 22, 44],
                [58, 24, 40],
                [-78, 47, 34],
                [55, -54, 43],
                [18, 44, 70],
                [42, -44, 48],
                [31, 54, 49],
                [31, -18, 97],
                [49, 94, 43],
                [94, 23, -23],
                [44, 43, -42]
            ],
            sizeBy: 'width',
            name: 'Size by width'
        }]          
    });  
});
</script>
</head>
<body>
  <script src="http://code.highcharts.com/highcharts.js"></script>
  <script src="http://code.highcharts.com/highcharts-more.js"></script>
  <div id="container" style="height: 400px"></div>
</body>
</html>

Click to view the demo





















Home »
  highcharts »
    Chart by Type »




Area Chart
Bar Chart
Boxplot Chart
Bubble Chart
Column Chart
Gauge Chart
Line Chart
Pie Chart
Polar Chart
Scatter Chart
Spline Chart