Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request : export to html #15

Closed
djouallah opened this issue Apr 21, 2019 · 17 comments · Fixed by #109
Closed

feature request : export to html #15

djouallah opened this issue Apr 21, 2019 · 17 comments · Fixed by #109
Projects

Comments

@djouallah
Copy link

No description provided.

@danmarshall
Copy link
Contributor

Hello, can you provide details? What should be exported?

@djouallah
Copy link
Author

Data and visualisations, for an example see kepler.gl

@danmarshall
Copy link
Contributor

danmarshall commented Apr 22, 2019

Hi @djouallah - This seems like 2 feature requests. Let's look at each:

  • Data export - We provide 2 sample datasets. Other than that, it's your own data. Not sure why SandDance would be exporting that which you already have? Are you looking to export the filtered data?
  • Visualization export - Is a screenshot good enough? Are you looking for a higher resolution image?

@djouallah
Copy link
Author

djouallah commented Apr 22, 2019

sorry, was not clear

I meant export an HTML that include the visuals and the data inline, basically a standalone self contained HTML.

screenshots is not enough as it is not interactive.

I use python altair to generate self contained HTML file, if I manage to use Sandance to do the same, it will be great.

the good example is https://charticulator.com/app/index.html which export HTML too.

@danmarshall
Copy link
Contributor

Is offline access required? If not, you might be able to use the snapshot feature:
image

This lets you create a deep link to a filtered chart, like this

@djouallah
Copy link
Author

ok, so how this works with my own data, where my data is saved ?

@danmarshall
Copy link
Contributor

Easiest is if your data is accessible via url. Can you run a local web server?
For example https://www.npmjs.com/package/local-web-server

If not, then much more machinery would be involved.

@djouallah
Copy link
Author

unfortunately no, no web server and the data is private, hence the standalone HTML

cheers Mate

@danmarshall
Copy link
Contributor

Hi @djouallah - I'm looking at Altair's export to HTML feature and the example chart, which is a somewhat static chart.

Are you looking for just the SandDance chart, or are you looking for the full explorer with all the chrome?

image

@djouallah
Copy link
Author

the full explorer with the data inline, the user interact with the visyals and filter and do stuff, but not necessary upload new data.

for altair, here is an example I made, it is fully interactive

https://djouallah.github.io/vega-lite/

@danmarshall
Copy link
Contributor

Seems the data is online, in a gist:
image

@djouallah
Copy link
Author

here is the same example with inline data
https://gist.github.com/djouallah/a0bc3b62105f5d2a0223cbb98f10047f

@danmarshall
Copy link
Contributor

Linking this to #36 as it seems related

@danmarshall danmarshall added this to TODO in Tasks Aug 21, 2019
@danmarshall danmarshall moved this from TODO to In Progress in Tasks Oct 15, 2019
@danmarshall danmarshall mentioned this issue Oct 16, 2019
5 tasks
@danmarshall
Copy link
Contributor

Thanks for the feature request. This is now live at https://sanddance.js.org/app/

find the export button at the bottom of the Data Browser tab:
image

Then, choose HTML as your file format.

@djouallah
Copy link
Author

thank you fantastic !!!!!!

@danmarshall danmarshall moved this from In Progress to Done in Tasks Oct 18, 2019
@Timaos123
Copy link

Thanks for the feature request. This is now live at https://sanddance.js.org/app/

find the export button at the bottom of the Data Browser tab: image

Then, choose HTML as your file format.

Hi, why don't I have this button?

image

@danmarshall
Copy link
Contributor

@Timaos123 this capability is part of our web app but is not built in to the sanddance-explorer or sanddance-embed components (as not all contexts allow “downloads”). Where/how are you using SandDance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Tasks
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants