update width-calculation for bar-charts