From 250c0ecadafc74f60f22f81d733f336b695e505c Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Tue, 8 Mar 2022 22:44:26 +0300 Subject: instantiate plotly object --- wqflask/wqflask/templates/pca_scree_plot.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wqflask/wqflask/templates/pca_scree_plot.html b/wqflask/wqflask/templates/pca_scree_plot.html index 7ebed1d3..41036333 100644 --- a/wqflask/wqflask/templates/pca_scree_plot.html +++ b/wqflask/wqflask/templates/pca_scree_plot.html @@ -71,13 +71,13 @@ const data = [{ }] -let custom_configs = (filename, format, modebar = true) => { +let custom_configs = (filename, download_format, modebar = true) => { return { displayModeBar: modebar, scrollZoom: false, toImageButtonOptions: { - format, + download_format, filename, height: 600, width: 700, @@ -86,6 +86,9 @@ let custom_configs = (filename, format, modebar = true) => { } } + +Plotly.newPlot(document.getElementById(), data, layout, + custom_configs(file_name = "scree_plot", download_format = "svg")); -- cgit v1.2.3