JSFiddle - React, Tailwind, and code Playground
HTML
<script type="text/javascript" src="http://highcharts.com/js/testing.js"></script>
<div id="container" style="height: 300px"></div>
<div id="tooltip"></div>
JavaScript
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container'
},
tooltip: {
formatter: function(){
var html = '';
html += '<span style="font-weight: bold; color: ' + this.series.color + '">';
html += this.series.name;
html += '</span><br/>';
html += 'x: ' + this.x + ', y: ' + this.y;
console.log(html)
$('#tooltip').html( html );
return false; // hide default tooltip
}
},
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]
}]
});