JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px"></div>
JavaScript
Highcharts.chart('container', {
title: {
text: 'Scatter chart'
},
chart: {
type: 'scatter'
},
plotOptions: {
scatter: {
stickyTracking: false
}
},
series: [{
enableMouseTracking: true,
dashStyle: 'Solid',
name: 'Example',
data: [{
x: 16.96,
y: 1.52
},
{
x: 14.63,
y: 1.56
},
{
x: 15.47,
y: 1.49
},
{
x: 14.64,
y: 1.47
},
{
x: 17.6,
y: 1.47
},
{
x: 16.33,
y: 1.42
},
{
x: 18.26,
y: 1.51
},
{
x: 21.07,
y: 1.44
},
{
x: 22.19,
y: 1.47
},
{
x: 19.9,
y: 1.34
},
{
x: 20.97,
y: 1.31
},
{
x: 18.05,
y: 1.43
},
{
x: 17.93,
y: 1.54
},
{
x: 18.68,
y: 1.49
},
{
x: 20.55,
y: 1.39
},
{
x: 14.1,
y: 1.38
},
{
x: 11.34,
y: 1.42
},
{
x: 11.65,
y: 1.42
},
{
x: 5.92,
y: 1.65
},
{
x: 5.9,
y: 1.59
},
{
x: 5.71,
y: 1.62
},
{
x: 4.97,
y: 1.69
},
{
x: 2.54,
y: 1.76
},
{
x: 5.36,
y: 1.56
},
{
x: 4.32,
y: 1.73
},
{
x: 1.66,
y: 1.93
},
{
x: 0.55,
y: 1.9
},
{
x: 1.13,
y: 1.98
},
{
x: 3.25,
y: 1.85
},
{
x: -1.56,
y: 2.18
},
{
x: -11.32,
y: 3.09
}
]
}],
xAxis: {
min: -20,
max: 30,
},
yAxis: [{
title: {
text: 'Y-value'
},
labels: {
enabled: true
},
...