JSFiddle - React, Tailwind, and code Playground
by oysteinmoseng
HTML
<script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js"></script><!---->
<script src="http://code.highcharts.om/highcharts.js"></script>
<div id="container" style="height: 400px"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
zoomType: "x",
events: {
click: function(event) {
alert("chart click");
}
}
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
plotOptions: {
series: {
enableMouseTracking: true,
allowPointSelect: true,
point: {
events: {
click: function(event) {
alert("point click");
}
}
}
}
},
tooltip: {
enabled : false
},
series: [{
data: [19.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
});
});