I am trying to make an axis of 24 hours with a separation of 1 hour in cubism.
var context = cubism.context()
.serverDelay(30*1000)
.step(10 * 60 * 1000) //The step size is 10 mins
.size(window_width - 200);
d3.select("#viz").selectAll(".axis")
.data(["top", "bottom"])
.enter().append("div")
.attr("class", function(d) { return d + " axis"; })
.each(function(d) { d3.select(this).call(context.axis().ticks(d3.time.hours, 1).orient(d)); });
This line context.axis().ticks(d3.time.hours, 1).orient(d) is somehow wrong. Since the axis text gets overlapped and nothing is visible. I tried many combinations like 60 mins, 1 Day but nothing seems to work. Can anyone please help me.