BarChart class is the view that represents a zoomable and scrollable barchart.