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

Use vl-convert to save charts #5

Open
brucala opened this issue Jul 10, 2023 · 2 comments
Open

Use vl-convert to save charts #5

brucala opened this issue Jul 10, 2023 · 2 comments

Comments

@brucala
Copy link
Owner

brucala commented Jul 10, 2023

Currently saving charts relies on NodeJS (and that's the only reason Deneb.jl depends on NodeJS). An alternative (currently used by Altair) is to use vl-convert instead. Blog post about vl-convert.

One convenience about vl-convert is that it would be an standalone artifact that does not require any external dependencies, unlike the approach with NodeJS that requires to install things like Canvas.

Unlike NodeJS, vl-convert does not convert to pdf. We could keep both dependencies (vl-convert for png/svg and NodeJS for pdf) but maybe make NodeJS a weak dependency.

@George9000
Copy link
Contributor

Unlike NodeJS, vl-convert does not convert to pdf.

That's too bad. PDF should be a 'first-class' citizen for export. Until vl-convert can do that, it seems simpler to stay with one dependency (NodeJS) rather than two. Gadfly and Makie uses the Cairo library for export. That's also worth exploring.

@brucala
Copy link
Owner Author

brucala commented Nov 28, 2023

vl-convert now also supports PDF

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