From f330e0912123cb8b9f265754a6e24afc022d0608 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Tue, 8 Mar 2022 22:33:30 +0300 Subject: add scree plot layout --- wqflask/wqflask/templates/pca_scree_plot.html | 38 +++++++++++++++++++++++++-- 1 file 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 @@
pca scree plot -
@@ -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: "Scree Plot", + 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": "" + + } + } + }, + +} -- cgit v1.2.3