better OO for bar chart control