-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add inline argument to chart.save() for html export (#2807)
* Add inline argument to chart.save() This includes the Vega/Vega-Lite/Vega-Embed JavaScript source in the exported html file so that it works offline. The logic is ported from altair_saver. * Only override the `template` argument if `inline=True` This way it's still possible to pass in custom templates * Add 'pdf' to `format` argument docstring * Another missed pdf format * check for @5 instead of @5.2.0 for forward compatibility Co-authored-by: Mattijn van Hoek <mattijn@gmail.com> * Don't search for closing quote to allow for later versions in the future Co-authored-by: Mattijn van Hoek <mattijn@gmail.com>
- Loading branch information
Showing
3 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters