You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/08/12 13:46:19 UTC
[GitHub] [incubator-echarts] FallenMax commented on a change in pull request #12236: fix #9265 axis name overlapped with axis labels for `grid.containLabel: true`
FallenMax commented on a change in pull request #12236:
URL: https://github.com/apache/incubator-echarts/pull/12236#discussion_r469271067
##########
File path: src/component/axis/AxisBuilder.js
##########
@@ -269,7 +269,22 @@ var builders = {
var nameLocation = axisModel.get('nameLocation');
var nameDirection = opt.nameDirection;
var textStyleModel = axisModel.getModel('nameTextStyle');
- var gap = axisModel.get('nameGap') || 0;
+ // label + gap
+ var distanceToAxis = calcDistanceToAxis();
+ function calcDistanceToAxis() {
+ var axis = axisModel.axis;
+ if (axis.grid.model.get('containLabel') && !axis.model.get('axisLabel.inside')) {
+ var labelUnionRect = estimateLabelUnionRect(axis);
Review comment:
Sorry but I don't have time looking into this for now, can you make a fix if the issue is still relevant?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org