Hi Ashwini,
The ClassBreakStyle is the best option for you to rend different colors based on the value ranges. And seems like you are setting it up correctly from your code snippet.
But it’s not working for you, so I am wondering: what’s the result on your app when you click “Result” button? The city symbols are rending in the same color or they didn’t show up at all? Or something else? It’s hard for us to dig into if we don’t know what’s the result in your app and what’s the problem you are running into.
Also we can check those items very quick.
1. I noticed you are using the PointStyle into the ClassBreak, let’s double check the data you are rending is a Point Type data. If it is an Area Type data, please use AreaStyles
2. Double check the range 1- 20000 covers the records in your data(at least covers some of them)
It will help and speed up a lot if we got a sample as well as data from you to reproduce your problem.
Please feel free to post the problem you have and we will do what ever we can to help.
Thanks,
Lee