added mouseover action for categorical legends