From 1033685f2f5769a44f2daabee2f7779288465711 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 4 Jun 2019 12:29:53 -0500 Subject: Fixed issue with probability plot y axis digits --- wqflask/wqflask/static/new/javascript/plotly_probability_plot.js | 2 +- 1 file changed, 1 insertion(+), 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 d52cb100..38c18d2b 100644 --- a/wqflask/wqflask/static/new/javascript/plotly_probability_plot.js +++ b/wqflask/wqflask/static/new/javascript/plotly_probability_plot.js @@ -161,7 +161,7 @@ intercept_line['samples_all'] = [[first_x, last_x], [first_value, last_value]] } - if (Math.max(y_values['samples_all']) - Math.min(y_values['samples_all']) < 6){ + if (Math.max(...y_values['samples_all']) - Math.min(...y_values['samples_all']) < 4){ tick_digits = '.1f' } else { tick_digits = 'f' -- cgit v1.2.3