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

Highlighted graph update takes much longer to be rendered #36

Open
balamurugan15 opened this issue Jan 9, 2024 · 1 comment
Open

Highlighted graph update takes much longer to be rendered #36

balamurugan15 opened this issue Jan 9, 2024 · 1 comment

Comments

@balamurugan15
Copy link

Hi there,
I'm using a callback on selected_node and I update the graph to highlight the node.
However, the updated graph takes forever to be shown.
I'm wondering if the zoom settings etc affect the rendering latency of the updated graph.

The first time rendering w/o any highlighting is much faster and there is negligible delay. I zoom in, select a node and it easily take >5 mins to render the new graph.

Graph with few hundred nodes.
Any idea what could be going wrong/can be optimized?

@balamurugan15
Copy link
Author

Update: Came across this issue on d3-graphviz magjac/d3-graphviz#232 that suggests the following config for d3-graphviz:

 d3.select('.graph')
                .graphviz()
                .tweenPaths(false)
                .tweenShapes(false)
                .growEnteringEdges(false)

I tried it locally and it worked!
A request would be to expose these params to DashInteractiveGraphviz so it can be configures as required for meeting performance requirements.

Thanks!

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