Add data loaders/providers that can be invoked via data chart config property url for chart data loading #8922
Replies: 3 comments
-
since your charts api is very similar to Google charts I think implementing data sources would be a great addition to your charts library for retrieving data. see: https://developers.google.com/chart/interactive/docs/dev/implementing_data_source |
Beta Was this translation helpful? Give feedback.
-
I think this might be possible today using a plugin. I created https://codepen.io/etimberg/pen/BajBaKo as proof of concept. I'm sure there are better ways to implement it, but it proves the underlying concept of loading data from some asynchronous source and re-rendering the chart |
Beta Was this translation helpful? Give feedback.
-
yeah, that kind of works, but it doesn't make it simpler to config and pass data to charts, which in 80% of the cases might be coming from some end-point. My suggestion was you add a grammar and loaders to make it simpler in chart.js similar to how vega does for example: https://vega.github.io/vega/docs/data/ |
Beta Was this translation helpful? Give feedback.
-
I find your approach to canvas charting commendable. However, having data links to data sources in charts configs could alleviate some data connection points and transformation pains.
Have you explored it yet and what would it take for your library to support such data 'plugins'?
Beta Was this translation helpful? Give feedback.
All reactions