Visualize Data with a Bar Chart - x-axis scale


Could anyone please advise how can I get year ticks on x-axis?


you need to use d3.scaleTime instead of d3.scaleLinear on the xScale variable and also you need to pass javascript date object for the domain.

thank you very much… that worked

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.