-
Notifications
You must be signed in to change notification settings - Fork 33
Chart with arc mark (pie chart) using Selenium backend errors out #90
Comments
Can you share the code you are using? The bundled vega libraries do not support pie charts (radial marks were added in a later release) so I wouldn't expect it to work unless you're using JS libraries loaded from CDN. |
I am passing to
|
As I mentioned, arc marks are not supported by the bundled javascript libraries. You'll have to save with altair_saver/altair_saver/savers/_selenium.py Lines 163 to 174 in 3c8e110
|
Thanks @jakevdp for the snippet, that makes sense, feel free to close this. By the way, is there any reason for the lower pace of altair/altair_saver releases? |
It's mainly that Vega-Lite 4.9 made some significant changes that will require some non-trivial adaption in Altair's wrappers, and its release happened to coincide with the time where a global pandemic caused me to lose childcare & out-of-home schooling for my kids. |
Since Altair 5.2, the functionality of Altair Saver is now available in Altair via the vl-convert package. Most of the functionality has been available since 5.0, and the main addition in 5.2 was PDF export. See the docs on how to save charts for more details We are going to archive this repo, so I'm closing all the open issues and PRs before doing so. Try out the new options for saving charts mentioned above and if you run into issues, please open an issue directly in the altair or vl-convert repo. |
I am using 'master' and I fail to create PNG exports using Selenium using example data 'https://vega.github.io/vega-lite/examples/layer_arc_label.html'.
Note that the whole setup works perfectly for any other type of chart.
I am invoking
altair_saver.save
method with the following options{"method": "selenium", "scale_factor": 2.0}
, and forcing output to PNG using a filename with a PNG extension, and I get the following error:The error pops up only with the selenium backend (node backend works alright, but resolution of the image if quite sub-optimal, hence the choice of the selenium backend)
I am using the following dependencies (
requirements.txt
file):The text was updated successfully, but these errors were encountered: