Custom timeline tick with d3 and dc.js
问题 I have next chart: scrollChart ... .x(d3.time.scale().domain([startDate, endDate])) .round(d3.time.minutes) .alwaysUseRounding(true) .xUnits(d3.time.minutes); How can I change my .xUnits and .round to use each 5/10/15 minutes as an time interval? Update: Gordon's answer helped, but I have new problem after zooming. This is 5 mins interval: And after my zooming I have bad chart :( How can I 'reGroup' all to 1 min interval after filtering? Is it real? 回答1: Thanks Gordon for help. I used d3.js