JSFiddle - React, Tailwind, and code Playground
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: 'Highcharts Bubbles with bubble labels'
},
plotOptions: {
bubble: {
dataLabels: {
enabled: true,
style: { textShadow: 'none' },
formatter: function() {
return this.point.name;
}
},
minSize: '10%',
maxSize: '30%'
}
},
series: [
{
name: '',
marker: { fillColor: 'pink' },
},
{
name: 'Men',
marker: { fillColor: 'lightblue' },
data: [
{ name: 'Dan', x: 4, y: 3, z: 4},
{ name: 'Bob', x: 5, y: 6, z: 3},
{ name: 'Frank', x: 3, y: 2, z: 7}
]
}
]
});
});