Skip to content

tomato-frontend-challenges/expenses-chart-component

Repository files navigation

Frontend Mentor - Expenses Chart Component

This is a solution to the Expenses Chart Component. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the bar chart and hover over the individual bars to see the correct amounts for each day
  • See the current day's bar highlighted in a different colour to the other bars
  • View the optimal layout for the content depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Bonus: See dynamically generated bars based on the data provided in the local JSON file

Screenshots

expenses_chart_component

Links

  • Solution URL: Link
  • Live Site URL: Link

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • BEM Methodology
  • CSS Transitions

Continued development

Coding the bar chart from scratch was very fun. My code was pretty rudimentary and lacked flexibility, but it is responsive and I personally feel the styling was very modular.

I converted the .json file into a .js file because the solutions I found online to locally importing a .json file felt very hacky.

Useful resources

Author

About

Frontend Mentor Challenge - Expenses Chart Component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published