diff options
-rw-r--r-- | wqflask/wqflask/templates/pca_scree_plot.html | 24 |
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> |