How to I can align bars with related dates with plottable.js library? First bar data are from Wed 7 and second from Thu 8.
Here is JSFiddle example: https://jsfiddle.net/50yq46cm/3/
function makeBasicChart() {
var data = [{"date":1473120000000,"count":0},{"date":1473206400000,"count":73},{"date":1473292800000,"count":3},{"date":1473379200000,"count":0},{"date":1473465600000,"count":0},{"date":1473552000000,"count":0},{"date":1473638400000,"count":0},{"date":1473724800000,"count":0}];
var dataset = new Plottable.Dataset(data);
var xScale = new Plottable.Scales.Time();
var yScale = new Plottable.Scales.Linear();
var xAxis = new Plottable.Axes.Time(xScale, "bottom");
var yAxis = new Plottable.Axes.Numeric(yScale, "left");
var plot = new Plottable.Plots.Bar();
plot.x(function (d) { return d.date; }, xScale);
plot.y(function (d) { return d.count; }, yScale);
plot.addDataset(dataset);
var chart = new Plottable.Components.Table([
[yAxis, plot],
[null, xAxis]
]);
chart.renderTo("svg#tutorial-result");
}
$(document).ready(function () {
makeBasicChart();
});