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

[change] Show node labels only after hitting a certain zoom level #148

Open
totallynotvaishnav opened this issue Jul 16, 2022 · 1 comment · May be fixed by #187
Open

[change] Show node labels only after hitting a certain zoom level #148

totallynotvaishnav opened this issue Jul 16, 2022 · 1 comment · May be fixed by #187

Comments

@totallynotvaishnav
Copy link
Member

Currently, when we zoom out too much the labels of the nodes look cluttered and they are unreadable. We should allow the library to configure the level of zoom at which we want to start seeing node labels.
Screenshot 2022-07-16 at 10 30 06 PM

@nemesifier
Copy link
Member

I am reopening this because I found out how to do this:

graph.echarts.on('graphRoam', function(e) {
  console.log(graph.echarts.getOption().series[0].zoom);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do (general)
Development

Successfully merging a pull request may close this issue.

2 participants