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

tm.op.removeNode doesn't replot even when requested to. #173

Open
salamanders opened this issue Jan 21, 2014 · 0 comments
Open

tm.op.removeNode doesn't replot even when requested to. #173

salamanders opened this issue Jan 21, 2014 · 0 comments

Comments

@salamanders
Copy link

I'm attempting to dynamically remove nodes from a TreeMap, and have the treemap react (replot) after each node is removed. However, even though the "type:replot" is there in the removeNode call, it doesn't actually replot the tree until I manually call a tm.refresh(); Is this expected or a bug?

Latest Chrome, OSX.

tm = new $jit.TM.Squarified({
  injectInto: 'infovis',
  titleHeight: 15,
  animate: true,
  offset: 1,
  duration: 2000
});
tm.loadJSON(json);
tm.refresh();

tm.op.removeNode(['id1', 'id2', 'id3'], {
  type: 'replot',
  duration: 1500
});
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