In the following example, the first and last character of each x label is truncated.
using StatsPlots, DataFrames
pyplot()
df = DataFrame(a=repeat(["label1","label2"], outer=2),b=repeat(["a","b"], inner=2),
c=rand(4))
@df df groupedbar(:a, :c, group=:b)
Status `~/Projects/ACTR_HMT/Project.toml`
[a93c6f00] DataFrames v0.21.7
[f3b207a7] StatsPlots v0.14.13