Design comparison
Solution retrospective
I have started this project with typeScript, but it became difficult for me to implement chart object instantiation. So I have done it with javaScript and charting library. I have learned javaScript charting library Chart.js. It was a new experience for me. Data was fetched and destructured from data.json file and chart object was instantiated to get chart dynamically.
What specific areas of your project would you like help with?None.
Community feedback
- @dylan-dot-cPosted 4 days ago
Everything looks good for this, congrats.
Only issue would be that you fetched the data manually but you don't need to do as it is constant and is already available to you.
So you can just make it a js file and import it into main.js
1@DarionasPosted 4 days ago@dylan-dot-c Hey, It is nice to hear it from you, but in dev's task was written: 'Bonus: Use the JSON data file provided to dynamically size the bars on the chart'
0@dylan-dot-cPosted 4 days ago@Darionas yh that is true, meaning that you must use it and not actually hardcode it in html/js. Unless it's like an actual API you are getting the data from, then you would use fetch.
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin 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