-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create the functionality save to svg
#2
Comments
|
|
Just to keep track : https://github.com/jakevdp/altair_savechart |
@ThomAub did you try out selenium and maybe have an example of how to do it? |
Hello @ChristianBeilschmidt , Thanks for your interest ! Unfortunately I didn't put much effort into the selenium option. As you pointed out it's not a great idea performance-wise but it's currently the only solution I found. If I find some times in the coming days to do a complete example I will update this issue. |
Hello, |
That sounds great 👍. I guess it makes sense to put it into a common crate rather than to duplicate functionality. I'm looking forward to using it. So you basically use a headless Firefox for rendering the charts and returning the SVG? Is there a way to keep the browser instance open? I'm not quite sure what the performance penalties are for starting the process over again. |
Yes that's exactly it.
Yes it's possible this mean that you want to save multiple charts ? |
Yeah, I plan to investigate it for a server process. For histograms, it is good to transfer it to a client browser and have an interactive plot but for scatter plots with lots of points you not necessarily want to transfer all data to the client. |
Did you manage to make some progress on this issue or maybe push your current state to a public branch? |
Hello, |
In order to save the chart render one can use web browser opened and click on
save png
orsave svg
.in the Altair documentation they use selenium to bypass the manual part and save directly.
It would be nice to have this feature also. see here for altair documentation
A selenium crate seems to exist and thus the same technic could be used : selenium-rs
The text was updated successfully, but these errors were encountered: