I'm using d3.js to show bar graph in my application. For limited data(eg: data for 12 days) the graph looks good but when the data value increases (eg: data for 1month or 1year), x-axis values get overwrite onto one another as shown in below image.
https://i.stack.imgur.com/Lw8JA.png
Data for graph comes from server using JSON for each day. So to scale the data do i need to group the data from server side and use that or should i scale that data using javascript before passing it to d3.js and what should be the range that should be set to scale ?