Adding legend field