SandDance icon indicating copy to clipboard operation
SandDance copied to clipboard

Feature request : import/export configuration from/to json

Open ghost opened this issue 6 years ago • 2 comments

Filters and chart configuration, should be exportable to a json file, in order to be saved and reused.

ghost avatar Oct 14 '19 14:10 ghost

hey @Kerybas try Data Preview: https://github.com/RandomFractals/vscode-data-preview

It has config and json files save ;)

RandomFractals avatar Nov 20 '19 10:11 RandomFractals

I too am looking for this. The 'export to HTML page' exports app + data, but not the visualization state. I would be great to be able to grab the 'Inight' object from the app, so you can reuse/pass it to the various methods that accept an data + insight object.

Is it possible to find it anywhere on the SandDance object? Im guessing that "snapshot" is exactly this object saved (but the camera orientation doesnt seem to be part of it)

[UPDATE] If you take a snapshot, you can serialize this object: JSON.stringify(SandDanceEmbed.sandDanceExplorer.state.snapshots[0].insight) And pass it to a new instance, and the state is recreated =) (excluding the camera state)

BobbyTable avatar May 06 '20 13:05 BobbyTable