JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://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 () {
var options = {
chart: {
type: 'scatter',
zoomType: 'xy',
renderTo: 'container'
},
title: {
text: 'Hovering removes select state?'
},
plotOptions: {
scatter: {
marker: {
radius: 5,
states: {
hover: {
enabled: true,
lineColor: 'rgb(100,100,100)'
},
select: {
enabled: true,
lineColor: 'red',
fillColor: 'red'
}
}
}
}
},
series: [{
name: 'Male',
color: 'rgba(119, 152, 191, .5)',
data: [
{'id': 'a', 'x': 185.4, 'y': 66.8},
{'id': 'b', 'x': 177.8, 'y': 75.5},
{'id': 'c', 'x': 180.3, 'y': 93.2}
]
}]
};
var chart = new Highcharts.Chart(options);
chart.get('b').setState('select');
// hovering on point b undoes select state?
});