bar chart with axis and dynamic titles