I'm looking for a simple solution to embed charts in my app without having to manage a backend. I've heard of libraries like Chart.js that can render charts from data, but I really want to avoid the hassle of setting up a database just for this purpose. Does anyone have suggestions?
2 Answers
It's a good point, though. Without a backend, you'll need to think about where the data will come from. Are you pulling it from a specific source?
You could serve a static JSON file to hold your data. It's straightforward and would let you avoid backend complexities. Just update the JSON file whenever you have new data, and your charts will reflect those changes!
But keep in mind that if your data needs frequent updates, serving a static file might get tedious.
I get a CSV dump from an external API, which works well for me!