add select text in legend diargams