Highcharts Demo
author(s):
Torstein Hønsi
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="height: 500px; width: 500px; margin: 0 auto"></div>
CSS
.highcharts-tooltip h3 {
margin: 0.3em 0;
}
JavaScript
Highcharts.chart('container', {
chart: {
type: 'bubble',
plotBorderWidth: 1,
zoomType: 'xy'
},
legend: {
enabled: false
},
title: {
text: 'Impact vs Effort'
},
subtitle: {
text: 'All Your Base Are Belong To Us'
},
xAxis: {
gridLineWidth: 1,
title: {
text: 'Effort'
},
labels: {
format: '{value}'
},
min: 0,
max: 100,
tickInterval: 10,
plotLines: [{
color: 'black',
width: 2,
value: 50,
label: {
rotation: 0,
y: 15,
style: {
fontStyle: 'italic'
},
text: 'Effort'
},
zIndex: 3
}]
},
yAxis: {
title: {
text: 'Impact'
},
labels: {
format: '{value}'
},
min: 0,
max: 100,
tickInterval: 10,
maxPadding: 0.2,
plotLines: [{
color: 'black',
width: 2,
value: 50,
label: {
align: 'right',
style: {
fontStyle: 'italic'
},
text: 'Impact',
x: -10
},
zIndex: 3
}]
},
tooltip: {
useHTML: true,
headerFormat: '<table>',
pointFormat: '<tr><th colspan="2"><h3>Project: {point.project}</h3></th></tr>' +
'<tr><th>Effort:</th><td>{point.x}</td></tr>' +
'<tr><th>Impact:</th><td>{point.y}</td></tr>' +
'<tr><th>Cost:</th><td>{point.z} Million</td></tr>',
footerFormat: '</table>',
followPointer: true
},
plotOptions: {
series: {
dataLabels: {
enabled: true,
format: '{point.id}'
}
}
},
series:...