Coder Social home page Coder Social logo

Comments (17)

danmarshall avatar danmarshall commented on April 28, 2024 1

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

from sanddance.

djouallah avatar djouallah commented on April 28, 2024 1

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

from sanddance.

djouallah avatar djouallah commented on April 28, 2024 1

thank you fantastic !!!!!!

from sanddance.

danmarshall avatar danmarshall commented on April 28, 2024

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

from sanddance.

djouallah avatar djouallah commented on April 28, 2024

Data and visualisations, for an example see kepler.gl

from sanddance.

danmarshall avatar danmarshall commented on April 28, 2024

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?

from sanddance.

djouallah avatar djouallah commented on April 28, 2024

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.

from sanddance.

djouallah avatar djouallah commented on April 28, 2024

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

from sanddance.

danmarshall avatar danmarshall commented on April 28, 2024

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.

from sanddance.

djouallah avatar djouallah commented on April 28, 2024

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

cheers Mate

from sanddance.

danmarshall avatar danmarshall commented on April 28, 2024

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

from sanddance.

djouallah avatar djouallah commented on April 28, 2024

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/

from sanddance.

danmarshall avatar danmarshall commented on April 28, 2024

Seems the data is online, in a gist:
image

from sanddance.

danmarshall avatar danmarshall commented on April 28, 2024

Linking this to #36 as it seems related

from sanddance.

danmarshall avatar danmarshall commented on April 28, 2024

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.

from sanddance.

Timaos123 avatar Timaos123 commented on April 28, 2024

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

from sanddance.

danmarshall avatar danmarshall commented on April 28, 2024

@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?

from sanddance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.