Skip to examples
Browse chart types
Chart library26 ways to visualize

STATISTICS / CHART GUIDE

Boxplot

A boxplot is a statistical chart used to display data distribution, central tendency, and outliers.

01 / EXPLORE

See it in action.

Switch to Code to copy an example.

Four-Subject Exam Score Distribution: Score distribution comparison of 20 students each in Math, History, English, and Physics.

Penguin Flipper Length Distribution (Grouped by Species and Sex, Custom Colors)

Air Quality Index Distribution of Five Cities: 25 AQI samples each from Beijing, Shanghai, Guangzhou, Chengdu, and Shenzhen, Custom Palette

About Boxplot

A boxplot is a statistical chart used to display data distribution, central tendency, and outliers. The box represents the interquartile range, the whiskers represent the range of data extremes, and outliers are marked individually. It is well-suited for visually comparing the distribution characteristics of different groups of data.

02 / CONFIGURE

Make it yours.

The properties available for this chart.

Configuration Options

PropertyTypeRequiredDescription
typestringrequiredValue must be "boxplot".
dataObject[]requiredChart data.
data.categorystringrequiredCategory name.
data.valuenumberrequiredData 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.backgroundColorstringoptionalMust be a valid color value.
style.palettestring[]optionalColor palette.
style.startAtZerobooleanoptionalWhether the Y-axis starts from zero, default is false.
axisXTitlestringoptionalX-axis title.
axisYTitlestringoptionalY-axis title.
GPT-Vis · An AntV project · MIT licensed