0

I have some data in a csv. I want to get the first and the last decile of all the numbers. I think I might need to use d3.scale.quantize() but I do not know how...

Thanks for your help I'm stuck since a while.

4

1 回答 1

1

你可以使用d3.quantile()这个,即

d3.quantile(numbers, 0.1);
d3.quantile(numbers, 0.9);

演示在这里

于 2014-01-21T21:47:13.717 回答