vega-label icon indicating copy to clipboard operation
vega-label copied to clipboard

Would your model work with anchor based on positive/negative value?

Open kanitw opened this issue 5 years ago • 3 comments

Like this:

image

kanitw avatar Mar 09 '19 22:03 kanitw

Yes, it would work by setting anchor: ['top', 'bottom']. Would this seem hacky?

chanwutk avatar Mar 09 '19 23:03 chanwutk

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?

kanitw avatar Mar 09 '19 23:03 kanitw

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.

chanwutk avatar Mar 09 '19 23:03 chanwutk