fix history bar chart width calculation