Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to check if chart is already rendered? #2204

Open
Marco-Sulla opened this issue Mar 31, 2019 · 0 comments
Open

How to check if chart is already rendered? #2204

Marco-Sulla opened this issue Mar 31, 2019 · 0 comments

Comments

@Marco-Sulla
Copy link

Marco-Sulla commented Mar 31, 2019

I'm using nv.models.multiBarChart and I'm saving it to a global variable supplier_graph to use it outside.

I inspected the element and I see that, even if the chart is rendered, supplier_graph.multibar.__rendered is false. PS: I now it's a private variable, but I'm disperate :)

Background: I want to launch a function only when all the charts are rendered. supplier_graph.dispatch.on('renderEnd', supplierGraphRendered); works only if supplier_graph is not already rendered. If it's already rendered, I need to fire supplierGraphRendered() by hand.

How can I know if the chart is rendered?

PS: I have nvd3 version 1.8.6-dev and d3 version 3.4.2, but I checked also with 5.9.2 without success

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant