API / Configuration / ChartAxisPadding

Defined in: src/core/types/chart/axis.ts:24

Extend the free boundaries of a continuous axis.

Properties

Property Type Description
max? string | number Maximum-side space, using the same units as min. Falls back to maxPadding when omitted. Minimum 0
min? string | number Minimum-side space: pixels (number or px string), a percentage, or auto to fit markers. A percentage is a share of the axis value range before padding (the data extent or explicit limits). Both sides use that same range; logarithmic axes use its logarithmic span. Percentages are applied before space for bars and labels and before tick rounding. Explicit axis limits and zoom take precedence. Category axes and axes normalized with stacking: 'percent' ignore padding. X padding is ignored when xAxis.rangeSlider.enabled is true. Oversized requests are bounded and can still clip. Minimum 0 Default 0