netjsongraph.js icon indicating copy to clipboard operation
netjsongraph.js copied to clipboard

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

Open totallynotvaishnav opened this issue 3 years ago • 2 comments

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

totallynotvaishnav avatar Jul 16 '22 17:07 totallynotvaishnav

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);
});

nemesifier avatar Feb 28 '23 20:02 nemesifier