MCPcopy
hub / github.com/microsoft/SandDance / transformData

Method transformData

docs/app/js/sanddance-app.js:9595–9612  ·  view source on GitHub ↗
(values, transform)

Source from the content-addressed store, hash-verified

9593 } else return view;
9594 }
9595 transformData(values, transform) {
9596 try {
9597 const runtime = _vegaDeckGl.base.vega.parse({
9598 $schema: "https://vega.github.io/schema/vega/v4.json",
9599 data: [
9600 {
9601 name: "source",
9602 values,
9603 transform
9604 }
9605 ]
9606 });
9607 new _vegaDeckGl.ViewGl(runtime).run();
9608 } catch (e) {
9609 // continue regardless of error
9610 }
9611 return values;
9612 }
9613 /**
9614 * Render data into a visualization.
9615 * @param insight Object to create a visualization specification.

Callers 1

_renderMethod · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected