expenses-chart-component-

Solution retrospective
This challenge was so amazing since it made do what i have never done before and i am so delighted about that . Nevertheless, i had difficulties getting data from api and so had to add manually . Can anyone guide me on how to use use data from api to build charts
Please log in to post a comment
Log in with GitHubCommunity feedback
- @rhyuen
You can use the following to pull the data from the included "data.json" file locally.
import data from "./data.json" assert {type: "json"};
From there, you can console.log(data) and you'll be able to see the array of seven items.
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