adds barchart to nav bar