Allow legend text to change based off of search.