handling bubble chart with only one bubble in highcharts
by bakhshi
HTML
<script src="http://code.highcharts.com/3.0.5/highcharts.js"></script>
<script src="http://code.highcharts.com/3.0.5/highcharts-more.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="height: 400px; min-width: 310px; max-width: 600px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'bubble',
zoomType: 'xy'
},
title: {
text: 'Highcharts Bubbles'
},
yAxis: {
max: -10.0074291938997820
},
plotOptions: {
bubble: {
minSize: 20,
maxSize: 150,
},
},
series: [{
//color:"rgb(99, 107, 117)",
/* data: [{
x: "3157.0",
y: -0.0174291938997821,
z: "225.5"
}],
*/
data: [
[3150.0, -10.0274291938997821, 10000.5]
]
// name:'Children'
}]
});
});