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?
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);
That was it. I was trying to find it within the legend reference. It didn't occur to me to look at the renderer.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.