Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Charts
Created by Guest
Created on May 23, 2022

Add OnChartsFullyLoaded Event Listener

Currently, when using the `render` function in the Charts SDK, you get a JavaScript Promise that resolves when the chart or dashboard has loaded. However, loaded does not mean that the data has fully loaded and rendered, it only means that the empty chart has loaded. I would like to propose an event listener or several event listeners that give you better control over the lifecycle of a chart or dashboard. For example, I'd like to be able to do something after my chart has fully rendered, but that isn't currently possible due to the nature of iFrames and not having the feature baked in. I think event listeners would fix this.