Highcharts Demo
author(s): Torstein Hønsi
by Jawad Ameen
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: 100%; width: 100%; min-height: 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: 'Issue analysis matrix'
},
xAxis: {
gridLineWidth: 1,
title: {
text: 'NPS'
},
//tickInterval: 100,
min: -100,
max: 100,
plotLines: [{
color: 'black',
dashStyle: 'dash',
width: 1,
value: 0,
zIndex: 3
}]
},
yAxis: {
startOnTick: false,
endOnTick: true,
title: {
text: 'Responses'
},
plotLines: [{
color: 'black',
dashStyle: 'dash',
width: 1,
value: 100,
zIndex: 3
}],
//tickInterval: 50,
min: 0,
//max: 100,
maxPadding: 0.2,
},
plotOptions: {
series: {
dataLabels: {
enabled: true,
format: '{point.name}'
}
}
},
series: [{
data: [
{ x: -65, y: 95, z: 13.8, name: 'BE', country: 'Belgium' },
{ x: 36.5, y: 102.9, z: 14.7, name: 'DE', country: 'Germany' },
{ x: 80.8, y: 91.5, z: 15.8, name: 'FI', country: 'Finland' },
{ x: 60.4, y: 152.5, z: 22, name: 'NL', country: 'Netherlands' },
{ x: 60.3, y: 86.1, z: 11.8, name: 'SE', country: 'Sweden' },
{ x: 8.4, y: 70.1, z: 16.6, name: 'ES', country: 'Spain' },
{ x: -14.2, y: 68.5, z: 14.5, name: 'FR', country: 'France' },
{ x: 73.5, y: 83.1, z:10, name: 'NO', country: 'Norway' },
{ x: 71, y: 93.2, z: 24.7, name: 'UK', country: 'United Kingdom' },
{ x: 69.2, y: 57.6, z: 10.4, name: 'IT', country: 'Italy' },
{ x: -68.6, y: 20, z: 16, name: 'RU', country: 'Russia' },
{ x: 25.5, y: 126.4, z:...