Design comparison
SolutionDesign
Solution retrospective
For the tooltip
& bottom date indicator, I used CSS pseudo selector ::after
& ::before
. But I couldn't change the content of those in my script. Then I two div
inside chart__bar
for tooltip and bottom date indicator instead of the pseudo selector.
Can I change ::after
or ::before
's content in js?
Secondly, What is the best way to size the chart bar
?
The spend amount
can be bigger. I looked over the data & found the max amount is "amount": 52.36
. Then I used it as 100% & size all the bars. What is the better way to do this?
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