I have many charts being generated dynamically. For some charts, the dates are near each other, so, axis labels are getting repeated 

Example: 

![enter image description here](https://i.stack.imgur.com/o4WNJ.png)

Date format used:

```
d3.time.format("%d-%b-%y")

```

Is there an in-built way to avoid duplication of labels? Or is there a good generic procedure which can avoid such duplication? 
Note that my charts have zooming feature also and the incoming data is dynamic, so I can't put in hardcoded values of "ticks" or "tickValues". Generating ticks or tickValues dynamically, could be the way to go.