Closed versipellis closed 2 years ago
Thanks - I believe this is a duplicate of #81. vega-cli (used by nodejs) does not support themes. For SVG output, you can use the selenium renderer instead, which does support themes.
Ah, I misread that issue. Thanks @jakevdp - with both the Selenium renderer and vega-cli installed, how does one specify which renderer to use?
You can pass method='selenium'
to altair_saver.save()
Possibly related to #21 #22 and #81 - but the nodeJS backend is not properly rendering themes applied to SVG outputs, both when using chart.save('output.svg')
,
chart.save('output.svg', embed_options={'renderer':'svg'}), and
save(chart, "output.svg")`. It renders fine in Jupyter and vega-embed.