diff options
Diffstat (limited to 'wqflask')
-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 |