Bubble Chart - final ready
by Shankar
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/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: ''
},
yAxis: {
title: {
text: ''
},
gridLineWidth: 0,
minorGridLineWidth: 0,
plotLines: [{
value: 4,
width: 2,
color: '#ccc',
dashStyle: 'shortdash'
}],
labels:
{
enabled: false
}
},
plotOptions: {
bubble: {
dataLabels: {
enabled: true,
style: { textShadow: 'none',
color: '#FFF',
borderColor:'none' },
formatter: function() {
return this.point.name;
}
},
minSize: '20%',
maxSize: '35%'
}
},
credits: {
enabled:false
},
exporting: {
enabled: false
},
legend: {
enabled: false
},
series: [
{
name: 'Arrival',
marker: { fillColor: 'pink' },
data: [
{ name: 'OAL-77%', x: 4.8, y: 2.5, z: 9}
]
},
{
name: 'Departure',
marker: { fillColor: '#51a316' },
data: [
{ name: 'FZ-87%', x: 4.4, y: 5, z: 6},
{ name: 'EK-92%', x: 5, y: 6, z: 7}
]
}
]
});
});