diff options
author | Alexander Kabui | 2022-03-08 22:44:26 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-03-14 19:55:33 +0300 |
commit | 250c0ecadafc74f60f22f81d733f336b695e505c (patch) | |
tree | 6593a9597eb98c742d0d7f55c29cdb54bfe5f0c1 | |
parent | b58ef3d974acea22d0de59a11a79090aabf6f411 (diff) | |
download | genenetwork2-250c0ecadafc74f60f22f81d733f336b695e505c.tar.gz |
instantiate plotly object
-rw-r--r-- | wqflask/wqflask/templates/pca_scree_plot.html | 7 |
1 files 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")); </script> </html> |