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
For readability, I'm trying to position the text on the left-hand side of the bars using text_position = "outside-base" but it's leading to a misalignment of the bars due differences in the width of the text. Even when using number_fmt = scales::label_percent(trim = FALSE) which produces strings of equal width, I can't align the bars.
I'm surprised this is happening though, as I'm using the latest version from github (2.1.0) and the source code seems to try and deal with this situation via stringr::str_pad() (see here).
The text was updated successfully, but these errors were encountered:
Yes, I have the same question and can't find an answer (2 years after it was asked).
Weirdly enough, the first example on the Github Page that uses gradient colors (Cars, Price, Price vs Average) does have aligned bars in the column "Price".
Thanks for making this useful extension package!
For readability, I'm trying to position the text on the left-hand side of the bars using
text_position = "outside-base"
but it's leading to a misalignment of the bars due differences in the width of the text. Even when usingnumber_fmt = scales::label_percent(trim = FALSE)
which produces strings of equal width, I can't align the bars.I'm surprised this is happening though, as I'm using the latest version from github (2.1.0) and the source code seems to try and deal with this situation via
stringr::str_pad()
(see here).The text was updated successfully, but these errors were encountered: