Select to view content in your preferred language

Can I replace the label for 'others' in my legend?

1069
2
Jump to solution
08-26-2014 02:27 PM
TracySchloss
Honored Contributor

In my legend I have some 'no data' values from my classification and they appear in my legend as 'others'.  Is there a way I can change this to say something else? 

0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Notable Contributor

Tracy,

Yes you can modify the text for others in the legend. To do this you'll need to modify the renderer's defaultLabel before applying the renderer to the layer.

          renderer.defaultLabel = "Not Classified"

          featureLayer.setRenderer(renderer);

View solution in original post

0 Kudos
2 Replies
KellyHutchins
Esri Notable Contributor

Tracy,

Yes you can modify the text for others in the legend. To do this you'll need to modify the renderer's defaultLabel before applying the renderer to the layer.

          renderer.defaultLabel = "Not Classified"

          featureLayer.setRenderer(renderer);

0 Kudos
TracySchloss
Honored Contributor

That was it.  I was trying to find it within the legend reference.  It didn't occur to me to look at the renderer.