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

implement d3.interpolateZoom on node click #411

Open
4Michael1Angelo5 opened this issue Jun 2, 2024 · 0 comments
Open

implement d3.interpolateZoom on node click #411

4Michael1Angelo5 opened this issue Jun 2, 2024 · 0 comments

Comments

@4Michael1Angelo5
Copy link

4Michael1Angelo5 commented Jun 2, 2024

Hello bumbeishvili. Thank you for all your hard work. How do I implement d3.interpolateZoom on node click?

I saw that another user was trying to achieve what I want to achieve here: #82.

I followed the steps you suggested of
`
.onNodeClick((d, i, arr) => {

      chart.setCentered(d.id).initialZoom(1.5).render()
 
    })`

However, I am unable to follow the user's steps in implementing the zoom feature.

Here is an example I forked from your react example: stackblitz

Here is an example of what I would like the zoom behavior to look like using d3.interpolateZoom: d3.interpolateZoom example

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