Better version with active clickable legend to filter