JSFiddle - React, Tailwind, and code Playground
by sbecker
HTML
<script src="http://people.iola.dk/olau/flot/jquery.flot.js"></script>
<div id="placeholder" style="width:600px;height:300px"></div>
JavaScript
var d = [
[1346482800000,6179.77],
[1346569200000,7224.40],
[1346655600000,1731.19],
[1346742000000,6384.61],
[1346828400000,6776.08],
[1346914800000,6355.49],
[1347001200000,724.32],
[1347087600000,7012.60],
[1347174000000,8406.38],
[1347260400000,4362.63]
];
console.log(new Date(1347260400000))
$.plot($("#placeholder"),
[
d
],
{
xaxis: {
mode: "time",
tickLength: 5
},
series: {
lines: { show: true },
points: { show: true }
},
grid: {
hoverable: true,
clickable: true
}
}
);