optimizing for bar charts