aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Tarasov2015-05-08 13:37:09 +0300
committerArtem Tarasov2015-05-08 13:37:09 +0300
commit22903fc679e4dbbd820b2849703d6f41950483b3 (patch)
tree554e182d46e0ca939a9b22e9045646a1656c4e98
parentbf860dd3c6e2c8d32e9d40ae129e33613151fab5 (diff)
downloadgenenetwork2-22903fc679e4dbbd820b2849703d6f41950483b3.tar.gz
fix
-rwxr-xr-xwqflask/wqflask/static/new/javascript/histogram.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/static/new/javascript/histogram.coffee b/wqflask/wqflask/static/new/javascript/histogram.coffee
index 7adb53f9..879c0fb8 100755
--- a/wqflask/wqflask/static/new/javascript/histogram.coffee
+++ b/wqflask/wqflask/static/new/javascript/histogram.coffee
@@ -53,7 +53,7 @@ class Histogram
get_histogram_data: () ->
console.log("sample_vals:", @sample_vals)
- n_bins = sqrt(@sample_vals.length)
+ n_bins = Math.sqrt(@sample_vals.length)
@histogram_data = d3.layout.histogram()
.bins(@x_scale.ticks(n_bins))(@sample_vals)
console.log("histogram_data:", @histogram_data[0])