Skip to content

Expenses chart component is a responsive and visually appealing component built using HTML, CSS, and JavaScript. This project is part of the Frontend Mentor challenges.

License

Notifications You must be signed in to change notification settings

CodePapa360/Expenses-chart-component

Repository files navigation

Expenses chart component

Challenge from Frontend Mentor

This is a JavaScript project that displays a chart of daily expenses for a week. It fetches data from JSON files and dynamically updates the chart based on the data. In addition to the original dataset, two more sample data files have been added for demonstration purposes.

Screenshot

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: Use the JSON data file provided to dynamically size the bars on the chart
  • Bonus: Added two more sample data
  • Bonus: Dark mode toggle

Built with

What I learned

In building this project, I had the opportunity to learn and practice several key concepts in JavaScript. One of the most important concepts that I learned is working with JSON data. I was able to fetch data from external sources in the JSON format, parse the data into a format that is easily readable by JavaScript, and manipulate it to render it on the page.

I also learned how to use JavaScript to perform various calculations and manipulations on data. For example, I was able to find the maximum value in a data set, calculate percentages, and manipulate CSS styles based on the data.

Overall, building this project has greatly improved my understanding of JavaScript and has given me practical experience in building real-world applications using JavaScript.

Installation

  • Clone this repo:
git clone https://github.com/CodePapa360/Expenses-chart-component.git
  • Install dependencies:
npm install
  • Build command:
npm run build
  • Live server:
npm start

Author

👤 Alamin

Feel free to contact me with any questions or feedback!

Show your support

Give a ⭐️ if you liked this project!

Acknowledgments

Special thanks to Frontend Mentor for providing such an amazing platform to practice and improve my frontend skills. The challenges and projects available on the website were both fun and challenging, and helped me learn a lot in a short amount of time.

License

This project is licensed under the MIT license, which means you can use, modify, and distribute the code as you wish. If you have any questions or feedback, feel free to reach out. Thank you for considering my code!

About

Expenses chart component is a responsive and visually appealing component built using HTML, CSS, and JavaScript. This project is part of the Frontend Mentor challenges.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published