Adding legend text