Preview Updated 2026-05-10

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.

2024 Q12024 Q22024 Q32024 Q4
Demo source
src/App.vue vue
<CfRidgePlot ... />
src/App.tsx tsx
<CfRidgePlot ... />

Multimodal distributions

Stacking multiple bells produces bimodal distributions, common when crossing seasons or user cohorts with secondary peaks.

Demo source
src/App.vue vue
<CfRidgePlot :rows="rows" :overlap="0.5" />
src/App.tsx tsx
<CfRidgePlot rows={rows} overlap={0.5} />

API

PropTypeDefaultDescription
rowsRidgeRow[]{ label, density: number[], colorIndex? }[]
overlap0..10.6Inter-row overlap ratio

反馈与讨论

Ridge plot · Discussion

0
0 / 600
一键发送
正在加载评论...