vega-label
vega-label copied to clipboard
Would your model work with anchor based on positive/negative value?
Like this:
Yes, it would work by setting anchor: ['top', 'bottom']
. Would this seem hacky?
It's not hacky, but my question is how would the negative one know how to use "bottom" given there is also no collision at the top?
Actually, it would not work when using bar-mark as the base mark.
It would work when place labels at the end point of each bar, and then use the bar-mark as avoidMarks
.