Ridge plot
Vertically stacked density curves across multiple groups.
Basic usage
Data is passed via props and rendered as pure SVG, with no third-party charting dependency.
Colors are drawn from the --viz-1..8 tokens and are colorblind-friendly.
Demo source
<CfRidgePlot ... /> <CfRidgePlot ... /> Multimodal distributions
Stacking multiple bells produces bimodal distributions, common when crossing seasons or user cohorts with secondary peaks.
Demo source
<CfRidgePlot :rows="rows" :overlap="0.5" /> <CfRidgePlot rows={rows} overlap={0.5} /> API
| Prop | Type | Default | Description |
|---|---|---|---|
rows | RidgeRow[] | — | { label, density: number[], colorIndex? }[] |
overlap | 0..1 | 0.6 | Inter-row overlap ratio |
反馈与讨论
Ridge plot · Discussion