Faseehshahid246517 commented on issue #21834:
URL: https://github.com/apache/echarts/issues/21834#issuecomment-6853671397

   > [@Faseehshahid246517](https://github.com/Faseehshahid246517)
   > 
   > This is already the documented behaviour, no? axisCommonTypes.ts L63–L69 
says `nameGap` is the gap from the labels when `nameMoveOverlap` is on. So a 
new option isn't really needed the code just doesn't follow its own comment yet.
   > 
   > Only catch is L74–L76 right below says `nameGap` is applied before the 
overlap move on purpose. So the two comments don't agree. Someone from the team 
has to pick which one holds. Once that's settled I can raise a PR.
   
   Thanks for spotting this, @sidshas03. I agree the two comments in
   axisCommonTypes.ts contradict each other, and a maintainer should decide
   which one is intended.
   
   I took the behaviour in L74-L76 (nameGap applied before overlap resolution)
   as the current contract, since that is how the code behaves today and how
   #21834 describes it. Changing nameGap to apply after overlap resolution would
   shift existing charts, so this PR adds nameOffset as a new option with a
   default of 0 and leaves nameGap unchanged.
   
   If the maintainers decide nameGap should be post-overlap instead, I'm happy
   to rework or close this PR. Could someone from the team confirm the intended
   semantics?


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