Set bubble sized by area
Description
The following code shows how to set bubble sized by area.
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 () {<!-- ww w .j av a 2 s . c o m-->
$('#container').highcharts({
chart: {
type: 'bubble',
plotBorderWidth: 1,
zoomType: 'xy'
},
plotOptions: {
bubble: {
minSize: 3,
maxSize: 50
}
},
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: 'area',
name: 'Size by area'
}]
});
});
</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>