Axis label autoWrap
mobile
The coordinate axis labels of the Cartesian coordinate system have the capability to automatically wrap when exceeding the limit length, which can be enabled through the autoWrap
property. At the same time, the maximum number of lines for wrapping can be configured through the label.style.lineClamp
property.
Currently, for the Cartesian coordinate system, the default vertical display space limitation for the y-axis is 30% of the chart height or width. If you enable the axis label's autoWrap
, it will automatically wrap once the axis space exceeds the limit.
Automatic line wrapping (autoLimit
) and automatic label rotation (autoRotate
) are both optimization strategies for excessively long text. They cannot be effective at the same time. If autoRotate
is enabled, the automatic rotation strategy will be used preferentially.