cumulative histogram?

已查看 15 次
跳至第一个未读帖子

David Luu

未读,
2016年1月30日 21:59:022016/1/30
收件人 d3-js
I was just wondering whether one can easily make a cumulative histogram (https://en.wikipedia.org/wiki/Histogram#Cumulative_histogram) with d3 histogram layout and the current examples, or whether this is something that requires some (math) work to implement?

I've not really used cumulative histogram myself.

Drew Winget

未读,
2016年1月30日 22:09:482016/1/30
收件人 d3...@googlegroups.com
It will require some math, but the math should be a simple function that converts your existing histogram data to sum up the previous bins. Other than that, the rendering code for d3 to bind to SVG should be useable unchanged. Just feed in the cumulative data instead of the non-cumulative data. Depending on the user experience you want to create, this accumulation could be done beforehand on the server as part of a database call or the response processing logic.

On 30 January 2016 at 18:59, David Luu <mang...@gmail.com> wrote:
I was just wondering whether one can easily make a cumulative histogram (https://en.wikipedia.org/wiki/Histogram#Cumulative_histogram) with d3 histogram layout and the current examples, or whether this is something that requires some (math) work to implement?

I've not really used cumulative histogram myself.

--
You received this message because you are subscribed to the Google Groups "d3-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to d3-js+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

回复全部
回复作者
转发
0 个新帖子