aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2018-11-02 22:21:39 +0000
committerzsloan2018-11-02 22:21:39 +0000
commit1007c54ea32a2208cc1755a9a788a1f84342fd66 (patch)
treee821f3747c249181bb52c733fa445e54029d6926 /wqflask
parent2a8841c304151f32c00200166b36054b04d2a9ac (diff)
downloadgenenetwork2-1007c54ea32a2208cc1755a9a788a1f84342fd66.tar.gz
Minor fix since sometimes number of samples with values wasn't counted correctly
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/show_trait/show_trait.py1
-rw-r--r--wqflask/wqflask/static/new/javascript/show_trait.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/wqflask/show_trait/show_trait.py b/wqflask/wqflask/show_trait/show_trait.py
index 3f5030b2..88ff5345 100644
--- a/wqflask/wqflask/show_trait/show_trait.py
+++ b/wqflask/wqflask/show_trait/show_trait.py
@@ -207,6 +207,7 @@ class ShowTrait(object):
sample_group_types = self.sample_group_types,
sample_lists = sample_lists,
attribute_names = self.sample_groups[0].attributes,
+ num_values = self.num_values,
temp_uuid = self.temp_uuid)
self.js_data = js_data
diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js
index c1b0cef9..df86e764 100644
--- a/wqflask/wqflask/static/new/javascript/show_trait.js
+++ b/wqflask/wqflask/static/new/javascript/show_trait.js
@@ -836,7 +836,7 @@
total_sample_count += get_sample_vals(sample_lists[i]).length
}
- if (total_sample_count < 256) {
+ if (js_data.num_values < 256) {
bar_chart_width = 25 * get_sample_vals(sample_lists[0]).length
var layout = {