Skip to content

feat: Implement violin chart type#118

Merged
jentfoo merged 1 commit intomainfrom
feat/violin-charts
Mar 2, 2026
Merged

feat: Implement violin chart type#118
jentfoo merged 1 commit intomainfrom
feat/violin-charts

Conversation

@jentfoo
Copy link
Member

@jentfoo jentfoo commented Mar 2, 2026

Violin charts provide bars that extend from a center line to represent population density across value ranges. With mirrored sides, you can visualize incoming/outgoing, created/finished, or other population splits over a range.

Entry points include Painter.ViolinChart(opt) for full control and ViolinRender(values, opts...) for the ChartOption path. The series can be produced with the options using NewViolinChartOptionWithData or NewViolinChartOptionWithSamples depending on the structure of your data. NewViolinChartOptionWithSamples provides KDE sample input with per_series and global normalization modes.

Examples can be seen in both examples/1-Painter/violin_chart-1-basic/ and examples/1-Painter/violin_chart-2-samples/

This PR closes #60

violin-chart-1-basic

@jentfoo jentfoo self-assigned this Mar 2, 2026
@jentfoo jentfoo added the feat Feature or improvement label Mar 2, 2026
Violin charts provide bars that extend from a center line to represent population density across value ranges. With mirrored sides, you can visualize incoming/outgoing, created/finished, or other population splits over a range.

Entry points include `Painter.ViolinChart(opt)` for full control and `ViolinRender(values, opts...)` for the ChartOption path. The series can be produced with the options using `NewViolinChartOptionWithData` or `NewViolinChartOptionWithSamples` depending on the structure of your data. `NewViolinChartOptionWithSamples` provides KDE sample input with `per_series` and `global` normalization modes.

Examples can be seen in both examples/1-Painter/violin_chart-1-basic/ and examples/1-Painter/violin_chart-2-samples/
@jentfoo jentfoo force-pushed the feat/violin-charts branch from baf29bd to d592f38 Compare March 2, 2026 04:08
@jentfoo jentfoo merged commit d592f38 into main Mar 2, 2026
11 checks passed
@jentfoo jentfoo deleted the feat/violin-charts branch March 2, 2026 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat Feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Violin chart type

1 participant