Skip to examples
Browse chart types
Chart library26 ways to visualize

STATISTICS / CHART GUIDE

Violin Chart

A violin chart is a statistical chart used to display data distribution and probability density.

01 / EXPLORE

See it in action.

Switch to Code to copy an example.

Iris Sepal Length Distribution (Grouped by Species)

Temperature Distribution of Four Cities: Beijing, Shanghai, Guangzhou, Harbin (30 samples each), Custom Colors

Crop Yield Distribution: Rice, Wheat, Corn (25 samples each), Custom Palette

About Violin Chart

A violin chart is a statistical chart used to display data distribution and probability density. It uses symmetric density curves to show the distribution shape of data, and can combine boxplot elements to display median and quartiles. It is suitable for intuitively comparing the distribution and density characteristics of different groups of data.

02 / CONFIGURE

Make it yours.

The properties available for this chart.

Configuration Options

PropertyTypeRequiredDescription
typestringrequiredValue must be "violin".
dataObject[]requiredChart data.
data.categorystringrequiredCategory name.
data.valuenumberrequiredCategory value.
data.groupstringoptionalGroup name, used for multi-group data comparison.
titlestringoptionalChart title.
axisXTitlestringoptionalX-axis title.
axisYTitlestringoptionalY-axis title.
themeBuiltinThemeName | ThemeSpecoptionalBuilt-in theme name or custom theme object; default is "default". See Documentation → Custom Themes.
styleObjectoptionalChart style.
style.palettestring[]optionalMust be an array of valid color values.
style.backgroundColorstringoptionalMust be a valid color value.
style.startAtZerobooleanoptionalWhether the Y-axis starts from zero, default is false.
axisXTitlestringoptionalX-axis title.
axisYTitlestringoptionalY-axis title.
GPT-Vis · An AntV project · MIT licensed