Horizontal bar chart

Extend the barChart function to add some additional hooks for
customization, allowing us to implement a horizontal bar chart.