aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorAlexander Kabui2022-03-08 22:33:30 +0300
committerBonfaceKilz2022-03-14 19:55:33 +0300
commitf330e0912123cb8b9f265754a6e24afc022d0608 (patch)
treee600fda47ae217357587c56d191b5cd5590b05f1 /wqflask
parent7b95f90c3f2eda4d1b62ea3ada0bfda8282c6efd (diff)
downloadgenenetwork2-f330e0912123cb8b9f265754a6e24afc022d0608.tar.gz
add scree plot layout
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/pca_scree_plot.html38
1 files changed, 36 insertions, 2 deletions
diff --git a/wqflask/wqflask/templates/pca_scree_plot.html b/wqflask/wqflask/templates/pca_scree_plot.html
index 29328397..989cf103 100644
--- a/wqflask/wqflask/templates/pca_scree_plot.html
+++ b/wqflask/wqflask/templates/pca_scree_plot.html
@@ -10,7 +10,6 @@
<body>
<div>
pca scree plot
-
<div id="scree_plot" style="width:700px;height:600px;"></div>
</div>
</body>
@@ -19,7 +18,42 @@
js_data = { { js_data | safe } }
-let {x_coord,y_coord} = js_data["scree_data"]
+let { x_coord, y_coord } = js_data["scree_data"]
+
+const layout = {
+
+ title: {
+ text: "<b>Scree Plot</b>",
+ font: {
+ "size": 24,
+ "family": "Arial",
+ "color": "#FF0000"
+ }
+ },
+
+ yaxis: {
+ title: {
+ text: "Percent of total variance %",
+ font: {
+ "size": 18,
+ "color": ""
+
+ }
+ }
+ },
+
+ xaxis: {
+ title: {
+ text: "PCA components",
+ font: {
+ "size": 18,
+ "color": ""
+
+ }
+ }
+ },
+
+}
</script>
</html>