Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chanda-abdul/frontend-mentor-expenses-chart-component-using-react-chartjs-tailwindcss

This is a solution to the "Expenses chart component challenge" on Frontend Mentor using React, Chart.js and TailwindCSS
https://github.com/chanda-abdul/frontend-mentor-expenses-chart-component-using-react-chartjs-tailwindcss

Last synced: 2 days ago
JSON representation

This is a solution to the "Expenses chart component challenge" on Frontend Mentor using React, Chart.js and TailwindCSS

Awesome Lists containing this project

README

        

# Frontend Mentor - Expenses chart component

![Design preview for the Expenses chart component coding challenge](./design/desktop-preview.jpg)
Frontend Mentor - Expenses chart component solution

This is a solution to the [Expenses chart component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/expenses-chart-component-e7yJBUdjwt). Frontend Mentor challenges help you improve your coding skills by building realistic projects.

## Table of contents

- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Continued development](#continued-development)
- [Useful resources](#useful-resources)
- [Author](#author)
- [Acknowledgments](#acknowledgments)

## Overview

### The challenge

Users should be able to:

- [x] View the bar chart and hover over the individual bars to see the correct amounts for each day
- [x] See the current day’s bar highlighted in a different colour to the other bars
- [x] View the optimal layout for the content depending on their device’s screen size
- [x] 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
#### Mobile ➡️ 375px
![](./design/mobile-design.jpg)

#### Desktop ➡️ 1440px
![](./design/desktop-design.jpg)
![](./design/desktop-preview.jpg)
#### Active States
![](./design/active-states.jpg)

### Links

- Live Site Solution URL: [Add live site URL here](https://curious-pastelito-182280.netlify.app/)

## My process

### Built with

- [TailwindCSS](https://tailwindcss.com/) - CSS Framework
- Sass custom properties
- Responsive Media Queries
- Flexbox
- Mobile-first workflow
- [React](https://reactjs.org/) - JS library
- JSX Semantic HTML5 markup
- JavaScript
- [Chart.js](https://www.chartjs.org/) - JavaScript Chart Building Library

### What I learned

Use this section to recap over some of your major learnings while working through this project. Writing these out and providing code samples of areas you want to highlight is a great way to reinforce your own knowledge.

To see how you can add code snippets, see below:

```html

Some HTML code I'm proud of


```
```css
.proud-of-this-css {
color: papayawhip;
}
```
```js
const proudOfThisFunc = () => {
console.log('🎉')
}
```

If you want more help with writing markdown, we'd recommend checking out [The Markdown Guide](https://www.markdownguide.org/) to learn more.

### Continued development

Use this section to outline areas that you want to continue focusing on in future projects. These could be concepts you're still not completely comfortable with or techniques you found useful that you want to refine and perfect.

### Useful resources

- [Hide gridlines in Chart.js](https://devsheet.com/code-snippet/hide-gridlines-in-chartjs/) - This helped me for XYZ reason. I really liked this pattern and will use it going forward.
- [Chart.js Docs](https://www.chartjs.org/docs) - This is an amazing article which helped me finally understand XYZ. I'd recommend it to anyone still learning this concept.
- [TailwindCSS](tailwindcss.com) - This helped me for XYZ reason. I really liked this pattern and will use it going forward.

## Author

- Frontend Mentor - [@Chanda-Abdul](https://www.frontendmentor.io/profile/Chanda-Abdul)
- Website - [Chanda Codes](https://chandacodes.com/)
- GitHub - [github.com/Chanda-Abdul](https://github.com/Chanda-Abdul)

## Acknowledgments

This is where you can give a hat tip to anyone who helped you out on this project. Perhaps you worked in a team or got some inspiration from someone else's solution. This is the perfect place to give them some credit.

**Note: Delete this note and edit this section's content as necessary. If you completed this challenge by yourself, feel free to delete this section entirely.**

## Welcome! 👋

Thanks for checking out this front-end coding challenge.

[Frontend Mentor](https://www.frontendmentor.io) challenges help you improve your coding skills by building realistic projects.

**To do this challenge, you need a decent understanding of HTML, CSS and JavaScript.**