making BarChart more declarative (like Plot is now)