refactored barchart tooltips