JSFiddle - React, Tailwind, and code Playground
HTML
<script type="text/javascript" src="http://highcharts.com/js/testing.js"></script>
<div id="container"></div>
CSS
#container {
border: 1px solid red;
width: 250px;
}
JavaScript
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
defaultSeriesType: 'bar',
backgroundColor: null,
animation: false,
margin: 0,
spacing: 0,
height: 100,
width: 250
},
title: null,
legend: {
enabled: false
},
credits: {
enabled: false
},
xAxis: {
endOnTick: true
},
series: [{
name: 'testdata',
data: [42]
}]
});