I am trying to create a D3 chart where I want the ticks to be by Week of Year
I would like to generate ticks like so Week 01 2016, Week 02 2016 etc
My data has only timestamps that are the beginning of the week for example 6 of Jan 2014 that is Week 01.
The problem is:
The D3 auto generation of ticks will generate a tick like 8 of January 2016 that If formatted will be Week 01 2016 but the data point is 6 of January 2016 and so the point will appear before the tick with the same format and it will create confusion to my users.
Do I have to implement/override the tickValues so I have only ticks that are dates that are always the first day of the week or is there some option I can pass to D3 so the auto generation of ticks that this into account?