question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Knowing when a graph has been drawn/rendered

See original GitHub issue

Thank you for this library and the demos/documentation - it’s fantastic.

I notice that in the Bar Graph component for example, this.draw() is called in componentDidMount. Is there anyway to know when this.draw() has been completed? Any callback available?

I’m in a situation where I’m waiting for multiple Nivo graph components to render before I print the page. With the current React setup, I’m able to know when these components mount and render but not when their graphs are actually drawn and shown - so I end up printing blank base nivo components with no graphs.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
plouccommented, May 2, 2019

Please have a look at this example => https://codesandbox.io/s/won5y6k70w

0reactions
techromecommented, Dec 31, 2020

@plouc Hello, first of all thanks for this great library! I need to mutate Treemap HTML DOM after it renders so I can style the tiles as I want (ex. set border-radius). But there’s no callback when it has rendered. Can you help me? Maybe there’s some method to do it

Or maybe there’s a method to put a class to all the tiles so I can style them? Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Graph Auto-Layout Algorithm | Baeldung on Computer Science
Explore the principles behind the layout of graphs in drawings. ... the layout of graphs, and we'll know how to automatically draw them....
Read more >
renderGraph: Render a laid out graph object in Rgraphviz
This method can render graph objects that have previously been laid out using the function layoutGraph . The details for user defined node...
Read more >
Problem 4. Graph Kquresentations and Explomation (\$ points ...
Draw the BFS tree and label each level with its distance from 1. Solution: (d) (2 points) Is this graph 2-colorable? Either 2-color...
Read more >
VFX Graph Sorting Order - Unity Forum
I have been tooling around with the Priority and sorting layer options of my two VFX graphs that I want to change the...
Read more >
Real-Time Terrain Rendering and Scene Graph Management
processing power and specialized graphics units have aided in the ability to draw an increasing amount of data with a growing amount of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found