Responsive with JS

I am doing the Data Visualization Projects - Visualize Data with a Bar Chart | Learn | freeCodeCamp.org project.

I am making the svg chart responsive, not necessary to pass the test cases.

The algorithm is
if width of screen < 625, then rotate the svg by 90deg with the same width and different height,
if not, then do something else.

So, on loading it on a width less than 625, the svg rotates but not renders with its full width.

Link to the codepen

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