FOCUS-4780: Add onclick event to graph legends and add hover CSS for elements