Visualize Data with a Bar Chart - x-axis scale

Hello

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

https://codepen.io/Zia73/pen/dyKjxrw?editors=0111

regards

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