jit icon indicating copy to clipboard operation
jit copied to clipboard

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

Open salamanders opened this issue 11 years ago • 0 comments

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

salamanders avatar Jan 21 '14 21:01 salamanders