Added a method for creating barcharts (new type of visualisation of data)