The angle axis is the angular component of polar coordinate charts. It works with the polar component and radius axis to create circular visualizations like radar charts, polar bar charts, and rose diagrams.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.
Basic Configuration
The angle axis supports the same four types as Cartesian axes:value, category, time, and log.
Axis Types
Category Axis
Most common for angle axis. Divides the circle into discrete segments.Value Axis
Numerical axis that maps values to angles.Time Axis
Temporal axis for time-based circular visualizations.Log Axis
Logarithmic axis for exponential angular scaling.Key Properties
Axis type determines the scale and data interpretation.Reference: src/coord/axisCommonTypes.ts:34
Index of the polar component that the angle axis belongs to.Reference: src/coord/polar/AxisModel.ts:35
ID of the polar component that the angle axis belongs to.Reference: src/coord/polar/AxisModel.ts:39
Starting angle in degrees. 0 degrees is at 3 o’clock position, increases counter-clockwise.Reference: src/coord/polar/AxisModel.ts:41
Ending angle in degrees. If not specified, defaults to
startAngle + 360.Reference: src/coord/polar/AxisModel.ts:42Whether the angle axis increases clockwise.Reference: src/coord/polar/AxisModel.ts:43
Axis name displayed on the chart.Reference: src/coord/axisCommonTypes.ts:44
Minimum value of the axis. Can be:
- A specific number
'dataMin': use the minimum value in data- A function that returns the min value
null/undefined: auto-calculated
Maximum value of the axis. Can be:
- A specific number
'dataMax': use the maximum value in data- A function that returns the max value
null/undefined: auto-calculated
For category axis: whether to add gap at both ends (default
true).
For value/time/log axis: gap value at both ends.Reference: src/coord/axisCommonTypes.ts:140Number of segments the axis is split into. Only works for value, time, and log axes.Reference: src/coord/axisCommonTypes.ts:145
Axis Label Configuration
Configuration for axis labels displayed along the angle axis.Reference: src/coord/polar/AxisModel.ts:45
Whether to show axis labels.
Margin between label and axis line.Reference: src/coord/axisCommonTypes.ts:331
Label formatter. Can be a template string or callback function.Reference: src/coord/axisCommonTypes.ts:340
Rotation angle of labels in degrees.Reference: src/coord/axisCommonTypes.ts:316
Whether to hide overlapping labels automatically.Reference: src/coord/axisCommonTypes.ts:335
Axis Line & Ticks
Configuration for the axis line (the circle or arc).Reference: src/coord/axisCommonTypes.ts:92
Whether to show the axis line.Reference: src/coord/axisCommonTypes.ts:232
Configuration for axis ticks.Reference: src/coord/axisCommonTypes.ts:93
Whether to show axis ticks.Reference: src/coord/axisCommonTypes.ts:245
Length of axis ticks in pixels.Reference: src/coord/axisCommonTypes.ts:249
Split Lines & Areas
Configuration for split lines (radial lines from center).Reference: src/coord/axisCommonTypes.ts:95
Whether to show split lines.Reference: src/coord/axisCommonTypes.ts:354
Configuration for split areas (pie-slice shaped areas).Reference: src/coord/axisCommonTypes.ts:97
Whether to show split areas.Reference: src/coord/axisCommonTypes.ts:370
Advanced Examples
Rose Diagram (Nightingale Chart)
Clock Face
Circular Time Series
Half Circle Configuration
Implementation Details
The angle axis uses a specialized interval calculation for category type to prevent label overlap. The calculation is based on text height rather than width. Reference: src/coord/polar/AngleAxis.ts:58-117Related Components
- Radius Axis - Radial component of polar charts
- Polar - Polar coordinate system
- X-Axis - Horizontal Cartesian axis
- Y-Axis - Vertical Cartesian axis