
Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
New things I learnt (js)
- Fetching JSON data using
fetch()
. - Creating a bar chart using D3.js.
- Converting
getDay()
numeric output into a day name using an array. - Retrieving an element’s width and height using
clientWidth
andclientHeight
. - Automatically reloading the page on resize for responsiveness.
- Using
getBoundingClientRect()
to get an element’s position and size.
Had difficulty in making the chart responsive. It didn't budge when the screen size changed --> Fixed by using clientWidth
and clientHeight
to get the <svg> size. I also use window.onresize
to reload the page automatically when resized
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord