anentropic commented on issue #19533: URL: https://github.com/apache/echarts/issues/19533#issuecomment-2700755587
> Add `labelLayout.y:555` to activate _moveOverlap_. Related to [#17937](https://github.com/apache/echarts/issues/17937). > > 📌 please close issue if problem solved. I don't think this suggestion fixes anything. The problem is not that `moveOverlap` was not activated, but instead that it shifted labels which didn't need shifting, spoiling what would have been a symmetrical alignment. The underlying problem in OP's example seems to be that `moveOverlap: 'shiftY'` shifts labels which share the same `y` value, even if they have different `x` values and so didn't actually overlap before shifting. that was probably simpler to implement than having to measure to width of the labels to check for actual overlaps I guess? the label widths are available in `labelLayout` callback function, but only for current label so I don't think it'd be possible to use that for making our own moveOverlap implementation -- 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: commits-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org