Skip to content

devdartagnan/Chart-Front-End-Mentor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 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

2022-12-08

Links

My process

  • I started with simple steps doing the HTML, while using Emmet.Then the css, letting the chart for last, because i knew i would have to use an framework, after testing some charts, most of them took me some time and it was impossible to translate the design, after a time i have decided to use Apexcharts, i have tried to use Styled-Components, but in the end most of styles were done configurating the Apexcharts in Js

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Vite
  • ApexCharts - JS library

What I learned

  • I learned how to configure better my project, i've started with simple html and css, after that i tried to create an an component react for the chart, after some testing i realized vanilla would be simplier, both for react and vanilla i used npm Vite.

Continued development

In the future, i wolud like to connect this to another services, and improve the project

Author