add legends and mouseover for event bar charts