diff --git a/src/component/axis/AxisBuilder.ts b/src/component/axis/AxisBuilder.ts index d06c0b5710..60591e9558 100644 --- a/src/component/axis/AxisBuilder.ts +++ b/src/component/axis/AxisBuilder.ts @@ -435,7 +435,7 @@ const builders: Record<'axisLine' | 'axisTickLabel' | 'axisName', AxisElementsBu text: name, font: textFont, overflow: 'truncate', - width: maxWidth, + width: maxWidth || +textStyleModel.get('width'), ellipsis, fill: textStyleModel.getTextColor() || axisModel.get(['axisLine', 'lineStyle', 'color']) as ColorString,