Basic Configuration
The radius axis supports the same four types as other axes:value, category, time, and log.
Axis Types
Value Axis
Most common for radius axis. Maps numerical values to distances from the center.Category Axis
Ordinal axis dividing the radius into discrete bands.Time Axis
Temporal axis for time-based radial visualizations.Log Axis
Logarithmic axis for exponential radial scaling.Key Properties
Axis type determines the scale and data interpretation.Reference: src/coord/axisCommonTypes.ts:34
Index of the polar component that the radius axis belongs to.Reference: src/coord/polar/AxisModel.ts:53
ID of the polar component that the radius axis belongs to.Reference: src/coord/polar/AxisModel.ts:57
Axis name displayed on the chart.Reference: src/coord/axisCommonTypes.ts:44
Minimum value of the axis (innermost radius). 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 (outermost radius). Can be:
- A specific number
'dataMax': use the maximum value in data- A function that returns the max value
null/undefined: auto-calculated
Whether to inverse the axis direction. When
true, larger values are closer to the center.Reference: src/coord/axisCommonTypes.ts:42For 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 concentric circles. Only works for value, time, and log axes.Reference: src/coord/axisCommonTypes.ts:145
Mandatory interval for axis ticks. Overrides automatic calculation.Reference: src/coord/axisCommonTypes.ts:149
Minimum interval when auto-calculating tick intervals.Reference: src/coord/axisCommonTypes.ts:153
Maximum interval when auto-calculating tick intervals.Reference: src/coord/axisCommonTypes.ts:157
Only for value axis. If
false, axis always includes zero. If true, the axis may not contain zero.Reference: src/coord/axisCommonTypes.ts:216Axis Label Configuration
Configuration for axis labels displayed along the radius axis.Reference: src/coord/axisCommonTypes.ts:89
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 show the minimum label (at center).Reference: src/coord/axisCommonTypes.ts:319
Whether to show the maximum label (at outer edge).Reference: src/coord/axisCommonTypes.ts:321
Whether to hide overlapping labels automatically.Reference: src/coord/axisCommonTypes.ts:335
Axis Line & Ticks
Configuration for the axis line (radial line).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
Configuration for minor ticks between major ticks.Reference: src/coord/axisCommonTypes.ts:94
Whether to show minor ticks.Reference: src/coord/axisCommonTypes.ts:347
Number of minor ticks between two major ticks.Reference: src/coord/axisCommonTypes.ts:348
Split Lines & Areas
Configuration for split lines (concentric circles).Reference: src/coord/axisCommonTypes.ts:95
Whether to show split lines (the circular grid lines).Reference: src/coord/axisCommonTypes.ts:354
Configuration for minor split lines.Reference: src/coord/axisCommonTypes.ts:96
Whether to show minor split lines.Reference: src/coord/axisCommonTypes.ts:365
Configuration for split areas (concentric ring areas).Reference: src/coord/axisCommonTypes.ts:97
Whether to show split areas.Reference: src/coord/axisCommonTypes.ts:370
Advanced Examples
Radar Chart Style
Logarithmic Radius
Donut Chart Configuration
Inverse Radius (Center is Max)
Category Bands
Implementation Details
The radius axis converts data to radius coordinates using the base axis coordinate transformation methods. Reference: src/coord/polar/RadiusAxis.ts:30-48Related Components
- Angle Axis - Angular component of polar charts
- Polar - Polar coordinate system
- X-Axis - Horizontal Cartesian axis
- Y-Axis - Vertical Cartesian axis