Class breaks and customized labels in the Javascript API 3.17

1196
2
08-25-2016 10:37 AM
JoePiasente
New Contributor

I am new to the javascript api. For my project I need to be able to change the font size, font color and the font family for a label based on the class break. I could do this via css but the end user will be the one to choose the font color, size, and family, so I have no idea of those values before hand.  Has any one done anything like this before?

0 Kudos
2 Replies
JoePiasente
New Contributor

 I do not think that will help me.  What I want is to have the user have different color/size of labels of the feature layer based on the class breaks.   An example is this

If a county in the USA has a population less than 50,000 then make the label color red and 8pt font, else color the label from the feature layer green and make 10 pt.   Again the color/size will come from the end user.  I just need to find a way to change the feature layers label based on the end users input.

0 Kudos