sidshas03 opened a new pull request, #21837:
URL: https://github.com/apache/echarts/pull/21837

   Problem with `nameMoveOverlap` on, `nameGap` was applied before the overlap 
move. So small `nameGap` values all gave the same position, and the name only 
moved when the gap was bigger than the labels. You couldn't set a fixed gap 
from the labels.
   
   What I did in `AxisBuilder.ts`, when `nameMoveOverlap` is on, the name now 
starts with no gap. After the overlap move is done, I add `nameGap` in the same 
direction. So `nameGap: 10` always means 10px past the labels. Negative 
`nameGap` is ignored in this mode so the name doesn't go back on the labels. 
With `nameMoveOverlap` off, nothing changes. I also updated the `nameGap` and 
`nameMoveOverlap` comments in `axisCommonTypes.ts` to match.


-- 
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]

Reply via email to