Skip to content

A chart component that helps you keep track of your monthly and annual expenses. Built with HTML, CSS and JavaScript

Notifications You must be signed in to change notification settings

ikennarichard/Expenses-chart-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Expenses chart component solution

This is a solution to the Expenses chart component challenge on Frontend Mentor. 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: Use the JSON data file provided to dynamically size the bars on the chart

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

An element with position: fixed; is positioned relative to the viewport, it always stays in the same place even if the page is scrolled, unlike absolute which is relative to its closest assestor with positio relative.

.loader {
    position: fixed;
}

Continued development

Ill focus on creating more animations. Thanks to @caroline for the awesome animation.

Author

Acknowledgments

Ill like to say thanks to everyone thats been helping me, to all my mentors and new friends. Happy New Year 😍

About

A chart component that helps you keep track of your monthly and annual expenses. Built with HTML, CSS and JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published