d3.js - controlling ticks and bins on a histogram
I'm trying to build a histogram script that compares values within, say, 20% of some "focus" value. So, for a focus value of 75, I'd look at values ranging from 60 to 90. I want a predetermined, odd number of bins/bars, with the middle bin/bar containing the focus value (75). Some bins may have a count of zero. My problem and question has to do with how to control the number of bins, and the number of ticks. I want the ticks between the bars. I want to say "7 bins" and get 7 bars, with 8 ticks. Is there any way to control bins and ticks to that level? It always seems like d3 will override me