MCPcopy Index your code
hub / github.com/microsoft/SandDance / load

Method load

packages/powerbi/src/app.ts:111–125  ·  view source on GitHub ↗
(data: DataFile | object[], getPartialInsight: (columns: SandDance.types.Column[]) => Partial<SandDance.specs.Insight>, snapshots: SandDance.types.Snapshot[], tooltipExclusions: string[])

Source from the content-addressed store, hash-verified

109 }
110
111 load(data: DataFile | object[], getPartialInsight: (columns: SandDance.types.Column[]) => Partial<SandDance.specs.Insight>, snapshots: SandDance.types.Snapshot[], tooltipExclusions: string[]) {
112 const wasLoaded = this.state.loaded;
113 this.setState({ loaded: true });
114 if (wasLoaded) {
115 this.explorer.setState({
116 calculating: () => {
117 this.explorer.load(data, getPartialInsight, { tooltipExclusions });
118 this.explorer.setState({ snapshots });
119 },
120 });
121 } else {
122 this.explorer.load(data, getPartialInsight, { tooltipExclusions });
123 this.explorer.setState({ snapshots });
124 }
125 }
126
127 unload() {
128 this.setState({ loaded: false });

Callers 2

showMethod · 0.45
constructorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected