This post describes how to build a very basic
ridgeline plot with d3.js, also called
joy plot. You can see many other examples in the
ridgeline section of the gallery.
Learn more about this kind of chart in
data-to-viz.com. This example works with d3.js v4
and v6
scaleLinear()
. The second for the groups, with
scaleBand()
kernelDensityEstimator
d3.line()
. Learn more
about shape helpers
here.