Skip to content

Commit 6e6cf4e

Browse files
committed
Added floor() and ceil() to millis interval
1 parent 2509055 commit 6e6cf4e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/time/scale.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,11 @@ d3_time.scale = function() {
161161
var d3_time_scaleMilliseconds = {
162162
range: function(start, stop, step) {
163163
return d3.range(+start, +stop, step).map(d3_time_scaleDate);
164+
},
165+
floor: function(date) {
166+
return date;
167+
},
168+
ceil: function(date) {
169+
return date;
164170
}
165171
};

0 commit comments

Comments
 (0)