fix implicit error

This commit is contained in:
lkchen-x1c 2016-10-24 02:38:28 -04:00
parent 5ec5db5e07
commit 7f0d226ee1

View File

@ -3,8 +3,8 @@
// Inspired by http://bl.ocks.org/mbostock/4061502
function iqr(k) {
return function(d) {
function iqr(k: number) {
return function(d: any) {
var q1 = d.quartiles[0],
q3 = d.quartiles[2],
iqr = (q3 - q1) * k;