Export to various formats
Arguments
- spec
A glyph_spec or glyph_compiled
- file
Output file path. Extension determines format. Currently implemented:
.html(self-contained interactive widget) and.json(the compiled spec). Other extensions (.svg,.png,.pdf) are planned but not yet implemented, and currently just print a message.- width
Width in pixels
- height
Height in pixels