Open RoelVerbelen opened 2 years ago
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).