pissang commented on a change in pull request #16206:
URL: https://github.com/apache/echarts/pull/16206#discussion_r766632548
##########
File path: 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 || Number(textStyleModel.get('width')) ||
undefined,
Review comment:
Use `+textStyleModel.get('width')` to convert it to number will be more
compact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]