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.
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
| Property | Type | Required | Description |
|---|---|---|---|
| type | string | required | Value must be "boxplot". |
| data | Object[] | required | Chart data. |
| data.category | string | required | Category name. |
| data.value | number | required | Data value. |
| data.group | string | optional | Group name, used for multi-group data comparison. |
| title | string | optional | Chart title. |
| axisXTitle | string | optional | X-axis title. |
| axisYTitle | string | optional | Y-axis title. |
| theme | 'default' | 'dark' | 'academy' | optional | Chart theme, default is "default". |
| style | Object | optional | Chart style. |
| style.backgroundColor | string | optional | Must be a valid color value. |
| style.palette | string[] | optional | Color palette. |
| style.startAtZero | boolean | optional | Whether the Y-axis starts from zero, default is false. |
| axisXTitle | string | optional | X-axis title. |
| axisYTitle | string | optional | Y-axis title. |