Apologies as I am an expert in neither statistics nor d3.js.
I am trying to overlay two smoothed histograms to show overlap in two related distributions.
I am wondering about the availability of kernel density or other smoothing in d3.js. There seemed to be some activity on the topic about a year ago, but I am not able to find the function in the mainline d3.js code. (The Wikipedia entry on kernel density estimation suggests d3's "science.stats" functions, which are not in my d3.v2.js download.)
Was it incorporated into the histogram layout with the density option? Or is it not available currently?
The example you are looking for is in the kde folder of the science.js git repository, which includes the kernel estimator.
Here's what it looks like:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With