Is there anyway I can get the embedded charts to pull its data from a custom endpoint?
We are currently using dynamic collections but there doesn’t seem to be a way to create charts for dynamic collections
Is there anyway I can get the embedded charts to pull its data from a custom endpoint?
We are currently using dynamic collections but there doesn’t seem to be a way to create charts for dynamic collections
Hello!
To have embedded charts pull data from a custom endpoint, set up a custom API endpoint that retrieves data from your dynamic collections or other sources. Use JavaScript to fetch data from this endpoint and integrate it with a charting library like Chart.js or D3.js to dynamically generate and embed charts into your application or dashboard. This approach allows you to visualize data from dynamic collections effectively.
Topic | Replies | Views | Activity |
---|---|---|---|
How to pass dynamic values to aggregate query through code? | 1 | 1.2k | Jun 2024 |
What all goes behind the scene, when a mongoDB chart / dashboard is run? | 0 | 266 | Jul 2024 |
Chart SDK - ‘preFilter’ property is not available for createChart() method in @mongodb-js/charts-embed-dom | 3 | 295 | Jul 2024 |
How can we access the data.metadata.age to determine when was the data last refreshed, from our embedding charts UI code | 0 | 143 | Aug 2024 |
Help creating custom charts | 0 | 21 | Oct 2024 |