[Bug] Continuous visualMap handle labels overlap when handles are very close
Version
6.1.0
Link to Minimal Reproduction
Steps to Reproduce
Just open the link and reduce the range of the visualMap until the texts collide.
Current Behavior
Both labels overlap and become unreadable, because both labels are drawn with verticalAlign: 'middle' centered on their handle. As soon as the vertical distance between the two handles is smaller than the label height, the texts collide.
Expected Behavior
The min and max handle labels should stay legible and not overlap, even when the handles are very close together. For example by anchoring the bottom label with verticalAlign: 'top' and the top label with verticalAlign: 'bottom', and/or applying a vertical offset.
Moreover, it would be interesting to add an option to have one label on each side of the visualMap. However, this would take up more space, so the first option looks better.
Environment
ECharts editorAny additional comments?
No response
Source: apache/echarts