aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2022-03-08 22:23:50 +0300
committerBonfaceKilz2022-03-14 19:55:33 +0300
commit7b95f90c3f2eda4d1b62ea3ada0bfda8282c6efd (patch)
treeda10c211eb78b49a6c594fa964ae44f8f864a351
parent7d72d83b201d4ea5010582048aca8dc817f2e56e (diff)
downloadgenenetwork2-7b95f90c3f2eda4d1b62ea3ada0bfda8282c6efd.tar.gz
add plotly
-rw-r--r--wqflask/wqflask/templates/pca_scree_plot.html24
1 files changed, 17 insertions, 7 deletions
diff --git a/wqflask/wqflask/templates/pca_scree_plot.html b/wqflask/wqflask/templates/pca_scree_plot.html
index 0859a349..29328397 100644
--- a/wqflask/wqflask/templates/pca_scree_plot.html
+++ b/wqflask/wqflask/templates/pca_scree_plot.html
@@ -1,15 +1,25 @@
<!DOCTYPE html>
<html>
+
<head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title></title>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title></title>
</head>
-<body>
- <div>
- pca scree plot
- </div>
+<body>
+ <div>
+ pca scree plot
+ <div id="scree_plot" style="width:700px;height:600px;"></div>
+ </div>
</body>
+<script type="text/javascript" src="{{ url_for('js', filename='plotly/plotly.min.js') }}"></script>
+<script type="text/javascript">
+js_data = { { js_data | safe } }
+
+
+let {x_coord,y_coord} = js_data["scree_data"]
+</script>
+
</html>