jiawulin001 commented on code in PR #16880:
URL: https://github.com/apache/echarts/pull/16880#discussion_r851836954
##########
src/coord/axisHelper.ts:
##########
@@ -333,11 +335,16 @@ export function estimateLabelUnionRect(axis: Axis) {
const label = labelFormatter(tick, i);
const unrotatedSingleRect = axisLabelModel.getTextRect(label);
const singleRect = rotateTextRect(unrotatedSingleRect,
axisLabelModel.get('rotate') || 0);
-
+ if (i === 0) {
+ firstLabelRect = new BoundingRect(singleRect.x, singleRect.y,
singleRect.width, singleRect.height);
Review Comment:
Good one, will update it.
--
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]