diff options
Diffstat (limited to 'wqflask')
-rwxr-xr-x | wqflask/wqflask/static/new/javascript/histogram.coffee | 2 |
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])
|