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

focusOnNode is not a function #106

Open
shradha0810 opened this issue Mar 27, 2023 · 3 comments
Open

focusOnNode is not a function #106

shradha0810 opened this issue Mar 27, 2023 · 3 comments

Comments

@shradha0810
Copy link

shradha0810 commented Mar 27, 2023

i saw your previous issues and tried the below code for enabling focusOnNode in onclick function but is shows error shown in second screenshot
image
this is the error. The same error comes even if I pass the first argument 'd' instead of 'node'
image

can you see to it and give possible solution for it

@vasturiano
Copy link
Owner

const myChart = Sunburst()
  .onClick(d => { 
    myChart.focusOnNode(d);
  })

@shradha0810
Copy link
Author

Thank you so much it works. Can you also tell me why my tooltip is not working. Like in inspect i can see the tags but they don't come on hovering over it

@vasturiano
Copy link
Owner

Hard to say without a repro example. Could you make one on codesandbox?

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

2 participants