mongodb-js / charts-embed-sdk

The easiest way to embed MongoDB Charts visualisations into your web app
https://docs.mongodb.com/charts/master/embedding-charts-sdk/
Apache License 2.0
43 stars 31 forks source link

Query all available dashboards or charts #88

Closed AlexRoosWork closed 8 months ago

AlexRoosWork commented 1 year ago

We are creating dashboards and charts, but are wondering if you always need to manually copy paste the ChartIDs or DashboardIDs. It would be very nice to query all available dashboards given a baseURL

Something like sdk.getDashboardIds() or sdk.getChartIds({dashboardId}) would be very nice.

kristinamongo commented 1 year ago

Hi @AlexRoosWork, thank you for the feedback. We do have getAllCharts() for embedded dashboards. This returns an array of chart instances that include chartId. Here is an example app using this method.

There is currently no method for getting all dashboards for a baseURL but I would highly recommend that you add this to the MDB Charts feature request page to get more visibility and upvotes. We usually plan our work around the most requested features.

kristinamongo commented 8 months ago

Thanks for submitting a feature request! Closing this for now as it's not a bug but a feature request.

If anyone would like to upvote the idea, it's here.