diff options
author | zsloan | 2019-10-24 14:48:14 -0500 |
---|---|---|
committer | zsloan | 2019-10-24 14:48:14 -0500 |
commit | 94e59617084fc6d632d6f78ddf7045609eb1ba8b (patch) | |
tree | 15e677d19c2a1afacee17d1cb98c68eeb314ffa6 | |
parent | 88e56cb99243082ba609290c8eba61e08c02eb2c (diff) | |
download | genenetwork2-94e59617084fc6d632d6f78ddf7045609eb1ba8b.tar.gz |
Added trait units to Histogram X axis title
-rw-r--r-- | wqflask/wqflask/show_trait/show_trait.py | 4 | ||||
-rw-r--r-- | wqflask/wqflask/static/new/javascript/show_trait.js | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/wqflask/wqflask/show_trait/show_trait.py b/wqflask/wqflask/show_trait/show_trait.py index b87ba8ec..e7423293 100644 --- a/wqflask/wqflask/show_trait/show_trait.py +++ b/wqflask/wqflask/show_trait/show_trait.py @@ -553,6 +553,10 @@ def get_trait_units(this_trait): inside_brackets = False if i == "[": inside_brackets = True + + if unit_type == "": + unit_type = "Value" + return unit_type def check_if_attr_exists(the_trait, id_type): diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js index 871582d2..f37ef1f8 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.js +++ b/wqflask/wqflask/static/new/javascript/show_trait.js @@ -1005,7 +1005,7 @@ root.histogram_layout = { title: "<b>Trait " + js_data.trait_id + ": " + js_data.short_description + "</b>", xaxis: { autorange: true, - title: "<b>Value</b>", + title: js_data.unit_type, titlefont: { family: "arial", size: 20 |