/expenses-chart-component

My solution to https://www.frontendmentor.io/challenges/expenses-chart-component-e7yJBUdjwt

Primary LanguageCSS

Frontend Mentor - Expenses chart component solution

This is a solution to the Expenses chart component challenge on Frontend Mentor.

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
  • d3-scale and d3-array
  • Vanilla JS
  • Mobile-first workflow
  • Vite

Continued development

I intend to continue working on more such projects that involve data visualization.