JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; max-width: 800px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'scatter'
},
title: {
text: 'Dot plot'
},
xAxis: {
type: 'categorial',
categories: ['A', 'B', 'C'],
max: 2
},
legend: {
enabled: false
},
series: [{
data: [{
x: 0,
y: 5
}, {
x: 0,
y: 2
}, {
x: 0.05,
y: 2
}]
}, {
data: [{
x: 1,
y: 5
}, {
x: 1,
y: 3
}, {
x: 1,
y: 4
}]
}, {
data: [{
x: 2,
y: 5
}, {
x: 2,
y: 6
}, {
x: 2,
y: 4
}]
}]
});
});