JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.highcharts.com/highcharts.src.js"></script>

<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>

<button id="button">LegendItemclick</button>

JavaScript

$('#container').highcharts({
					chart : {
						type : 'spline',
					},
    
					xAxis : {
						categories : ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
					},

					series : [{
						data : [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],

					}],

					plotOptions : {
						series : {
							cursor : 'pointer',
						}
					},
});

$('#button').click(function() {
		alert("Fire legenditemclick event");
});