fix sorting issue is full text search -  fix legend in scatter plot