creates and documents the final barchart