d3 quantile or quartile scale given the quartile values

十年热恋 提交于 2019-12-12 05:33:28

问题


The current quantile scale takes all the input values as the domain to map the output range. But if the data is extremely large, I want the processing to happen on the server giving me the quartile values.

So I get: var quartiles=[5, 10, 15, 20, 25, 30, 35, 40, 45]; // 9 values with the mean (25) at the middle and standard deviations to each side var valueToMark = 37;

Using d3, how do I correctly create a quantile scale and mark them all on a line given only the quantiles and value to mark?

p.s. my knowledge of quantiles/quartiles is limited, therefore I would be grateful if I'm also corrected on any wrong assumptions I've exhibited here.

来源:https://stackoverflow.com/questions/25975063/d3-quantile-or-quartile-scale-given-the-quartile-values

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!