Hide negative values in bubble chart
Description
The following code shows how to hide negative values in bubble chart.
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 () {<!--from ww w. ja va2 s .com-->
$('#container').highcharts({
chart: {
type: 'bubble',
plotBorderWidth: 1,
zoomType: 'xy'
},
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]
],
displayNegative: false
}]
});
});
</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>