Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 2 years ago

Expenses Chart Display - TailwindCSS

accessibility, tailwind-css, lighthouse
Kimo Spark•2,190
@kimodev1990
A solution to the Expenses chart component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi there šŸ‘‹, This is my solution for this challenge.

šŸ“‘ Features:-

  • Achieved 95% Accessibility, 100% SEO, 100% Performance and 95% Best Practices in Desktop Lighthouse. šŸ“Š
  • Achieved 95% Accessibility, 100% SEO, 100% Performance and 95% Best Practices in Mobile Lighthouse. šŸ“Š
  • Styling implemented using Tailwind CSS šŸŽØ
  • Reading data on JSON file & rendering it to the JavaScript using JSON.parse( ) šŸ“
  • For loop method & If else statement in JavaScript šŸ“
  • Document Object Module ( DOM ) šŸ“
  • classList.add/remove( ) in JavaScript. šŸ“
  • onmouseover & onmouseout attributes for showing bar results while hovering. ✨
  • FlexBox šŸ“¦
  • Code formatted using Prettier šŸ’»

The issue I've stumbled into was that I wanted to show the results of each bar while hovering individually on each bar using JavaScript, I've tried several ways in my JavaScript coding but couldn't achieve it and instead shows all of the results together, If anyone could check the script.js and suggest to me a better way for showing the results individually, I'll be very appreciated.

I'll appreciate any suggestions & feedback to achieve better performance.

Thank you. āœŒļø

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Kimo Spark's solution.

Join 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
Ā© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License