Skip to content
Submitted 1 day ago

Responsive expenses chart built with React, TypeScript, & Tailwind css

react, tailwind-css, typescript, vite, accessibility
LVL 3
@piyush-kaushik24
A solution to the Expenses chart component challenge

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm most proud of making the chart dynamically generate its bars from the data instead of hard-coding each bar. I also implemented dynamic bar heights, highlighted the highest value, and added hover states to display the spending amount.

What challenges did you encounter, and how did you overcome them?

The main challenge I encountered was creating the chart bars dynamically based on the data and calculating their heights relative to the largest value. I also had some difficulty with positioning and styling the hover amount. I overcame these by breaking the problem into smaller parts and using the data to control the layout and styles.

What specific areas of your project would you like help with?

I'd like feedback on my React component structure, TypeScript usage, dynamic chart logic, and Tailwind CSS implementation.

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on Piyush Kaushik’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