Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apache/echarts/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The boxplot (also known as box-and-whisker plot) is a statistical chart used to display the distribution of data through quartiles. It provides a visual summary of data spread, central tendency, and outliers.When to Use
Use boxplot charts when you need to:- Compare distributions across different categories or groups
- Identify outliers in your datasets
- Show statistical summaries including quartiles, median, and range
- Visualize data spread and skewness
- Analyze multiple datasets side by side for comparison
Basic Configuration
Series Type
Boxplot charts use the'boxplot' series type and require a Cartesian coordinate system.
Data Format
Boxplot data follows a specific format:[min, Q1, median, Q3, max]
Complete Example
Key Options
layout
Controls the orientation of the boxplot.boxWidth
Controls the width range of the box. Accepts an array[min, max] where values can be absolute numbers or percentages.
[7, 50] (from BoxplotSeries.ts:112)
itemStyle
Defines the visual style of boxplot items.emphasis
Defines the hover/emphasis state appearance. Default configuration (BoxplotSeries.ts:119-129):Data Item Options
BoxplotDataItemOption
Each data item can have individual styling:Statistical Dimensions
Boxplot defines five value dimensions (BoxplotSeries.ts:93-99):Coordinate System
Boxplot charts work with Cartesian 2D coordinate systems and depend on grid, xAxis, and yAxis components.Performance Considerations
- Animation duration: Default is 800ms (BoxplotSeries.ts:131)
- Use
progressiverendering for large datasets - Consider disabling shadows in
itemStylefor better performance with many data points
Related Charts
- Candlestick Chart - Similar visual structure for financial data
- Scatter Chart - Can be combined to show outliers
- Bar Chart - Alternative for category comparison