Take legend into account in horizontalbars