Style dynamic legend text