I have an array of dates
["01/01/2001", "01/01/2001", "03/01/2001", "01/04/2001", "01/05/2001", "02/05/2001", "01/07/2001", "01/07/2001", "01/07/2001", "01/10/2001"]
Some of them are duplicated and do not have a special order for a certain time (1 week, 43 days, 2 years, etc.).
What I want to do is create a histogram (or histogram) that shows the number of βdatesβ in an arbitrary number of buckets (for example, 20 buckets).
If there are no dates in the bucket, it displays zero and the total for those buckets that contain dates.
Basically, as in this example: http://bl.ocks.org/mbostock/3048450
But instead of showing random "seconds" I need "dates".
how

I assume that I want to change the X-scale domain to a date range in my data.
source share