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

scaleFactor for exporting #10

Closed
davidpham87 opened this issue Jan 22, 2019 · 2 comments
Closed

scaleFactor for exporting #10

davidpham87 opened this issue Jan 22, 2019 · 2 comments

Comments

@davidpham87
Copy link

Hello,

Is there a way to specify the scaleFactor from Vega-Embed for exporting the visualization to png?

Best regards,
David

@jsa-aerial
Copy link
Owner

jsa-aerial commented Jan 22, 2019

I just added this for 0.7.0, which will be released shortly.

It will be in hc/default-opts:

(def default-opts
  {:vgl {:export {:png true, :svg true}
         :scaleFactor :SCALEFACTOR  ; <----- defaults to 1
         :editor true
         :source false
         :renderer :RENDERER ; either "canvas" or "svg" - see defaults
         :mode :MODE}        ; either "vega-lite" or "vega" - see defaults
   :tab {:order :row
         :eltsper 2
         :size "auto"}})

@davidpham87
Copy link
Author

Thanks a lot!

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