JSFiddle - React, Tailwind, and code Playground
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: 400px; min-width: 310px; max-width: 600px; margin: 0 auto"></div>
CSS
.highcharts-tooltip h3 {
margin: 0.3em 0;
}
JavaScript
$(function() {
$('#container').highcharts({
chart: {
type: 'bubble',
},
xAxis: {
visible: false
},
yAxis: {
title: {
text: ''
},
labels: {
formatter: function() {
return null
}
}
},
plotOptions: {
series: {
dataLabels: {
enabled: true,
inside: false,
y: -10,
format: '{point.name}'
}
}
},
series: [{
data: [{
x: 1,
y: 1,
z: 13.8,
name: 'BE'
}, {
x: 2,
y: 1,
z: 14.7,
name: 'DE'
}, {
x: 3,
y: 1,
z: 15.8,
name: 'FI'
}, {
x: 4,
y: 1,
z: 12,
name: 'NL'
}, {
x: 5,
y: 1,
z: 11.8,
name: 'SE'
}, {
x: 6,
y: 1,
z: 16.6,
name: 'ES'
}, {
x: 7,
y: 1,
z: 14.5,
name: 'FR'
}, {
x: 8,
y: 1,
z: 10,
name: 'NO'
}, {
x: 9,
y: 1,
z: 24.7,
name: 'UK'
}, ]
}]
});
});