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 data = [];
data.push([(new Date("2012/02/20").getTime()), 1]);
data.push([(new Date("2012/02/19").getTime()), 0]);
data.push([(new Date("2012/02/18").getTime()), 3]);
$.plot($("#graph_placeholder"), [data], {
bars: {
show: true,
width: 0.6,
align: "center"
},
xaxis: {
mode: "time",
minTickSize: [1, "day"],
},
yaxis: {
min: 0
}
});