vega / voyager

Visualization Tool for Data Exploration
http://vega.github.io/voyager
Other
1.45k stars 179 forks source link

Adds inline data to export from copy-button #874

Closed paulinooliveira closed 2 years ago

paulinooliveira commented 2 years ago

The current version would limit the data for the clipboard export to "data": { "name": "source"}`, but it's more helpful to export the self-contained chart with the inline data for quicker prototyping. One can always delete it, but adding it back is not as trivial.

More specifically, I replaced the this.specWithFilter object in the main JS file by Object.assign(this.specWithFilter, {data: {name: "source", values: this.props.data.values}}, which does the trick.

domoritz commented 2 years ago

Please modify the sources and not the compiled files.