diff --git a/_config.yml b/_config.yml index 885a892..ec4b7f9 100644 --- a/_config.yml +++ b/_config.yml @@ -548,6 +548,12 @@ third_party_libraries: url: js: "https://cdn.jsdelivr.net/npm/photoswipe@{{version}}/dist/photoswipe-lightbox.esm.min.js" version: "5.4.4" + plotly: + integrity: + js: "sha256-oy6Be7Eh6eiQFs5M7oXuPxxm9qbJXEtTpfSI93dW16Q=" + url: + js: "https://cdn.jsdelivr.net/npm/plotly.js@{{version}}/dist/plotly.min.js" + version: "3.0.1" polyfill: url: js: "https://cdnjs.cloudflare.com/polyfill/v{{version}}/polyfill.min.js?features=es6" diff --git a/_includes/distill_scripts.liquid b/_includes/distill_scripts.liquid index df4104c..8d6a63c 100644 --- a/_includes/distill_scripts.liquid +++ b/_includes/distill_scripts.liquid @@ -81,6 +81,17 @@ {% endif %} +{% if page.chart and page.chart.plotly %} + + + +{% endif %} + {% if page.chart and page.chart.vega_lite %} {% endif %} +{% if page.chart and page.chart.plotly %} + + + +{% endif %} + {% if page.chart and page.chart.vega_lite %}