When we embed mongodb charts in the frontend and whenever there is no data, the shart shows empty with only labels, how to handle this in frontend?
Hi @Dishant_Pal -
With the latest version of the Embedding SDK, you can call getData
on the embedded chart to programmatically access the data - that would let you detect that no data was returned. See @mongodb-js/charts-embed-dom - npm (npmjs.com).
Tom