Options
You can customize the plugin by setting options in mkdocs.yml. For example:
plugins:
- charts:
vega_width: container
vega_theme: default
vega_theme_dark: dark
vega_renderer: svg
use_data_path: True
data_path: ""
vega_width(default iscontainer). When not specified explicitly in the JSON schema, thewidthto use (see vegalite customizing size). When set tocontainerwidth will be 100%.vega_theme(default isdefault). Specify one of the available vegalite themes.vega_theme_dark(default isdark). When using the mkdocs-material theme with a dark mode, automatically render charts using this theme. Dark mode toggle is also supported. Specify one of the available vegalite themes.vega_renderer(default issvg). Specify one of the available vegalite renderers.use_data_path(default isTrue). WhenTrue, any relative urls used in the JSON schema are relative to thedata_path. WhenFalse, relative urls should be relative to the URL of the page.data_path(default is""). Whenuse_data_pathis enabled, the base path relative to thedocs/folder.
Last update:
2023-09-25
Created: 2021-12-08
Created: 2021-12-08