You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using snipplets will insert the json content into the output HTML file, which is more suitable for smaller datasets. Using file_path will fetch the json content once the page is loaded.
Plotly has its own eco-system for creating charts in most statistical languages. You can output the plot as a json file through fig.to_json().
Options
Option
Default
Description
lib_path
Relative path to local plotly.js file, or leave it blank to use CDN.
template_default
plotly_min
template for plotly charts in light mode
template_slate
plotly_dark_min
template for plotly charts in dark mode
enable_template
True
use template to automatically change theme
Available Plotly templates are ["plotly_min", "plotly_dark_min", "plotly", "plotly_white", "plotly_dark", "ggplot2", "seaborn", "simple_white", "none"]. If you want to customize your own template, you can export it as a JSON file and provide its relative path in options.
About
Mkdocs plugin to add interactive charts with Plotly.js