Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Expenses Chart Component

Ruthwik 190

@web-devie

Desktop design screenshot for the Expenses chart component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


:) I have tried updating the active chart(the one with cyan color) with respect to the date. So, it keeps updating based on the day ;)

Qn. I have one question with importing the json file into javascript. I have come up with a solution that uses assert statement which works for all the browsers but not in firefox. Can some one help me with the solution that works for all the browsers?

Community feedback

Topdog 0

@ProgressOnyema

Posted

Try using the fetch api to import the json file to your JavaScript file. This will work whether it is located locally or remotely(on a server).

Hope the insight helps!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord