interval.filter()

interval.filter(test)

Returns a new interval that is a filtered subset of this interval using the specified test function. The test function is passed a date and should return true if and only if the specified date should be considered part of the interval. For example, to create an interval that returns the 1st, 11th, 21th and 31th (if it exists) of each month:

var i = d3.timeDay.filter(function(d) { return (d.getDate() - 1) % 10 === 0; });

The returned filtered interval does not support count. See also interval.every.

doc_D3_Js
2016-11-24 10:27:54
Comments
Leave a Comment

Please login to continue.