From b58ef3d974acea22d0de59a11a79090aabf6f411 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Tue, 8 Mar 2022 22:38:44 +0300 Subject: add custom configs for scree plot --- wqflask/wqflask/templates/pca_scree_plot.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/wqflask/wqflask/templates/pca_scree_plot.html b/wqflask/wqflask/templates/pca_scree_plot.html index 5b8ab09e..7ebed1d3 100644 --- a/wqflask/wqflask/templates/pca_scree_plot.html +++ b/wqflask/wqflask/templates/pca_scree_plot.html @@ -69,6 +69,23 @@ const data = [{ } }] + + +let custom_configs = (filename, format, modebar = true) => { + + return { + displayModeBar: modebar, + scrollZoom: false, + toImageButtonOptions: { + format, + filename, + height: 600, + width: 700, + scale: 1 + } + } + +} -- cgit v1.2.3