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

See if we can use vegaEmbed actions #1

Open
rikedyp opened this issue Sep 5, 2023 · 2 comments
Open

See if we can use vegaEmbed actions #1

rikedyp opened this issue Sep 5, 2023 · 2 comments

Comments

@rikedyp
Copy link
Collaborator

rikedyp commented Sep 5, 2023

Refers to the default menu provided by vegaEmbed (save as... view source etc.)

image

in #.VegaLite.Html.InnerBody

b,←'vegaEmbed(''#vis'',vlSpec, {"actions": false});'

It might be nice to have this if we can make the callbacks work. Else we will have to implement a menu ourselves. One caveat, for example, is that HTMLRenderer doesn't do a File Browser (File Save, File Open) window, so that might be a problem.

@JoshDavid
Copy link
Owner

Let's see if the functions can return an SVG array as a result (by default or resultstype specified by ⍺)

@rikedyp
Copy link
Collaborator Author

rikedyp commented Sep 20, 2023

Looks like the SVG/PNG links are data URLs and it doesn't look like HTMLRenderer sends callback requests to APL for those - I also know that there is no SaveAs-style file browser in HTMLRenderer, so we'd have to implement our own. Perhaps there are settings that modify what these buttons should do, but we might be better off implementing our own features anyway.

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

No branches or pull requests

2 participants