JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://people.iola.dk/olau/flot/jquery.flot.js"></script>
<div id="graph_placeholder" style="width:600px;height:300px;"></div>
JavaScript
var d1 = [];
for (var i = 0; i <= 10; i += 1)
d1.push([i, parseInt(Math.random() * 30)]);
$.plot($("#graph_placeholder"), [d1], {
lines: {
show: false
},
bars: {
show: true,
barWidth: 0.6,
align: "center"
}
});