How to use the vega-dataflow.changeset function in vega-dataflow

To help you get started, we’ve selected a few vega-dataflow examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vega / vega / src / View.js View on Github external
this._renderer = null;
  this._handler = new CanvasHandler().scene(root);
  this._queue = null;
  this._eventListeners = [];

  // initialize dataflow graph
  var ctx = runtime(this, spec);
  this._signals = ctx.signals;
  this._data = ctx.data;

  // initialize scenegraph
  if (ctx.root) ctx.root.set(root);
  this.pulse(
    this._data.root.input,
    changeset().insert(root.items)
  );

  // background color
  this._backgroundColor = null;

  // initialize resize operator
  this.add(null,
    function(_, pulse) { pulse.dataflow.resize(_.width, _.height); },
    {width: this._signals.width, height: this._signals.height}
  );
}
github microsoft / chart-parts / packages / util / transform / src / facade / dataset.ts View on Github external
function pushData(data: any[], pipeline: Pipeline) {
	const { dataflow, start } = pipeline
	dataflow.pulse(start, changeset().insert(data)).run()
}
github vega / vega / packages / vega-view / src / data.js View on Github external
export function insert(name, _) {
  return change.call(this, name, changeset().insert(_));
}
github vega / vega / packages / vega-view / src / data.js View on Github external
export function remove(name, _) {
  return change.call(this, name, changeset().remove(_));
}