See

Density Ridgeline Plots in D3.js

Using density ridgelines for fun and profit.

Interactive D3.js charts with HTMX

An example of how to use HTMX inside of a D3.js chart.