Bar chart looks bad

Hi,

I have a simple bar chart with four categories/colors. Currently, the bars are not centered over their labels.

When I don’t sort by the Y-axis, it’s tolerable, but as soon as I apply a sort, it looks terrible. How can I fix the alignment so the bars stay centered?

Thanks!

Hello @shay.davidovitch, you should try switching to a stacked bar chart. If each column will only have a single grouping, this will improve the layout of the visual.


Stacked bar chart indeed gave the solution.
Thank you @DylanMorozowski for that.
I wonder though why the regular one wont work? Bug?

@shay.davidovitch, glad it worked! It is a little trick I figured out awhile back. I wouldn’t say the other functionality is a bug, just how the group by/color by function works. It is anticipating multiple bars per column, so if column will only contain a single group, the stacked bar chart visual works better!

What makes you say that?