Fix bar chart x calculation.