From 161abf23b0441e91dbbf1e0ae0e552307d48f2ef Mon Sep 17 00:00:00 2001
From: zsloan
Date: Tue, 6 Jun 2023 17:58:56 +0000
Subject: Align probability plot title to the left ('xanchor: right' does this
for some reason)
---
wqflask/wqflask/static/new/javascript/plotly_probability_plot.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'wqflask')
diff --git a/wqflask/wqflask/static/new/javascript/plotly_probability_plot.js b/wqflask/wqflask/static/new/javascript/plotly_probability_plot.js
index 59c23819..577d62d3 100644
--- a/wqflask/wqflask/static/new/javascript/plotly_probability_plot.js
+++ b/wqflask/wqflask/static/new/javascript/plotly_probability_plot.js
@@ -171,7 +171,10 @@
}
var layout = {
- title: "Trait " + js_data.trait_id + ": " + js_data.short_description + "",
+ title: {
+ xanchor: 'right',
+ text: "Trait " + js_data.trait_id + ": " + js_data.short_description + "",
+ },
margin: {
l: 100,
r: 30,
--
cgit v1.2.3