NPellet / visualizer

Other
42 stars 24 forks source link

How to share a view with the data ? #311

Open visualizer-feedback opened 9 years ago

visualizer-feedback commented 9 years ago

In this view we can paste a tab-delimied value file.

It would be nice to share the view with the paste data. What this would imply ?

Testcase: http://visualizer.epfl.ch/tiny/sNDwxk3ja90UH1LVp9I2 (Original URL)

targos commented 9 years ago

The "share view" button doesn't save the data ?

2015-01-10 11:50 GMT+01:00 visualizer-feedback notifications@github.com:

In this view we can paste a tab-delimied value file.

It would be nice to share the view with the paste data. What this would imply ?

Testcase: http://visualizer.epfl.ch/tiny/sNDwxk3ja90UH1LVp9I2 (Original URL http://www.lactame.com/visualizer/v2.9.10/?viewURL=http://visualizer.epfl.ch/x/x6g9F1mP84MGpdLYxWyO/view.json&dataURL=http://visualizer.epfl.ch/x/x6g9F1mP84MGpdLYxWyO/data.json )

— Reply to this email directly or view it on GitHub https://github.com/NPellet/visualizer/issues/311.

lpatiny commented 9 years ago

Indeed the data is saved but apparently before filtering ?? Is this possible ?

The arrayExperimental is expected to ba an array of [x,y] but if we look in the data.son file it is saved as a string in the original format

arrayExperimental: {type: "string",…}

type: "string" value: "68.1620 3.906e3↵68.1760 5.493e3↵68.1866 5.674e3↵68.2051 3.267e3↵68.2198 8.486e3↵68.2418 5.238e3↵68.2566 5.996e3↵68.2704 4.396e3↵68.2828 4.690e3↵68.2966 5.498e3↵68.3193 5.557e3↵68.3309 3.014e3↵68.3423 3.806e3↵68.3588 6.241e3↵68.3812 6.325e3↵68.397"

targos commented 9 years ago

@NPellet : We propose the following : add an option in Versioning.getData to include the variables. Variables would be serialized into something like

{
  "name": "myVar",
  "jpath": ["myName", "mySubName"],
  "filter": "filterURL"
}

and put in the data.json under a special _variables array

Then when data is loaded, variables could be recreated from this object

What do you think about it ?