This post provides a clean template for ridgeline plot with d3.js (also called joy plot). Color depends on average value, axes are labeled, and background is customized. See other examples in the ridgeline section of the gallery. This example works with d3.js v4
and v6