From 1007c54ea32a2208cc1755a9a788a1f84342fd66 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 2 Nov 2018 22:21:39 +0000 Subject: Minor fix since sometimes number of samples with values wasn't counted correctly --- wqflask/wqflask/show_trait/show_trait.py | 1 + wqflask/wqflask/static/new/javascript/show_trait.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 = { -- cgit v1.2.3