-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Description
Version
5.5.1
Link to Minimal Reproduction
Steps to Reproduce
Create continuous visual map with "inRange" affecting "symbolSize", "calculable" set to "true" and "orient" set to "horizontal"
E.g.
{
type: 'continuous',
calculable: true,
dimension: 0,
inRange: {
symbolSize: [10, 500]
},
}Current Behavior
Label for handle at minimum position collides with the handle. The reason is that the distance between label and handle is based on the handle size and it changes depending on handle position.
Expected Behavior
Expecting the label not to collide and keep reasonable distance from the handle.
Possible solution include:
a) keeping the distance between handle and label constant, equal to the largest distance possible for particular visualMap
b) changing the way of calculating the distance between handle and text. Currently label has always verticalAlign set to "middle", which is the cause of the collision (when distance is less than the half of the label height, the items collide). For labels below, vertical align could be "top" and for labels above, vertical align could be "bottom". To consider would be the overall distance between labels and handles, if it should be narrowed down to avoid getting a big gap for the larger handle.
| verticalAlign: 'middle', |
Environment
- OS: MacOS Sonoma 14.5
- Browser: Chrome 127.0.6533.88 (Official Build) (arm64)Any additional comments?
I'll be happy to contribute on that, just any feedback about my solutions proposals would be welcome.

