code: function(options) {
          var that = this;
          options = $.merge({
            condition: $.lambda(false),
            step: $.empty,
            onComplete: $.empty,
            duration: 200
          }, options || {});
  
          var interval = setInterval(function() {
            if(options.condition()) {
              options.step();
            } else {
              clearInterval(interval);
              options.onComplete();
            }
            that.viz.refresh(true);
          }, options.duration);
      }
docs: /*
  sequence
  
  Iteratively performs an action while refreshing the state of the visualization.
  
  Parameters:
  
  options - (object) An object containing some sequence options described below
  condition - (function) A function returning a boolean instance in order to stop iterations.
  step - (function) A function to execute on each step of the iteration.
  onComplete - (function) A function to execute when the sequence finishes.
  duration - (number) Duration (in milliseconds) of each step.
  
  Example:
  (start code js)
  var rg = new $jit.RGraph(options);
  var i = 0;
  rg.fx.sequence({
  condition: function() {
  return i == 10;
  },
  step: function() {
  alert(i++);
  },
  onComplete: function() {
  alert('done!');
  }
  });
  (end code)