You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the documentation lacks an example demonstrating how to add labels to a horizontal bar chart, where the text label appears to the left of the bar when the x-encoded value is negative and to the right when it’s positive.
What is your suggestion?
This was originally raised on Stack Overflow.
Currently, the documentation lacks an example demonstrating how to add labels to a horizontal bar chart, where the text label appears to the left of the bar when the
x
-encoded value is negative and to the right when it’s positive.The Vega-Lite documentation includes a relevant example: Bar Chart with Negative Values and Labels.
In Vega-Altair, this can be achieved as follows:
Side note: I'm not a fan of this syntax:
Maybe we can introduce a more intuitive alternative for mark property expressions, similar to how we handle encoding channel selection parameters?
The text was updated successfully, but these errors were encountered: