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

Solution retrospective
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.
Please log in to post a comment
Log in with GitHubCommunity 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