MCPcopy Create free account
hub / github.com/microsoft/SandDance / transformData

Method transformData

docs/tests/v2/es6/js/sanddance.js:154569–154584  ·  view source on GitHub ↗
(values, transform)

Source from the content-addressed store, hash-verified

154567 }
154568
154569 transformData(values, transform) {
154570 try {
154571 const runtime = VegaDeckGl.base.vega.parse({
154572 $schema: 'https://vega.github.io/schema/vega/v4.json',
154573 data: [{
154574 name: 'source',
154575 values,
154576 transform
154577 }]
154578 });
154579 new VegaDeckGl.ViewGl(runtime).run();
154580 } catch (e) {// continue regardless of error
154581 }
154582
154583 return values;
154584 }
154585 /**
154586 * Render data into a visualization.
154587 * @param insight Object to create a visualization specification.

Callers 1

_renderMethod · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected