Added legend and tooltip to bar chart.