Skip to content

Export graph after creating visual #571

Open

Description

@jsbasra

Create a button to export a snapshot as a image or pdf. I don't currently see any way to export visualization after it is made. Please add this functionality.

Activity

  1. danmarshall commented on Jan 5, 2023

    @danmarshall
    Contributor

    Hello, you can use this code:

    const sdcanvas = document.querySelector('.sanddance-gl canvas');
    const base64PNGDataUrl = sdcanvas.toDataURL('image/png');
  2. danmarshall commented on Jan 5, 2023

    @danmarshall
    Contributor

    Related: #198

  3. jsbasra commented on Jan 13, 2023

    @jsbasra
    Author

    Dan Marshall (@danmarshall) , thank you for your reply. However, I don't really see how to use that code inside the Azure Data Studio / VSCode extension. Would I somehow connect it to the webapp, and use this javascript code in a console?

  4. danmarshall commented on Jan 13, 2023

    @danmarshall
    Contributor

    Ok, it wasn't clear that you were in an ADS/VSCode context. Can I ask if you are using the Snapshots feature? If so, the snapshots created only use a thumbnail of the chart, and are meant to re-hydrate an interactive visualization. Are you able to take a screenshot with your device? Perhaps you can explain your scenario and detail the feature request.

  5. jsbasra commented on Jan 14, 2023

    @jsbasra
    Author

    Yes, I am able to take a snapshot, and I can see optoins to cut/copy/paste but it doesn't allow me to paste an image outside. I was hoping there was a button to export the snapshot as a pdf/image for adding to a report. It could be that I am missing the option somewhere in the UI.

  6. danmarshall commented on Feb 15, 2023

    @danmarshall
    Contributor

    Related: #614

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions