Select to view content in your preferred language

Creating ClassBreaks for rendering graphics (polygons)

690
2
04-05-2011 09:30 AM
VincenzoPiscitelli
Emerging Contributor
Given a set of values, how would one go about generating the appropriate classes to use in the ClassBreaksRenderer.

Details:

I first query a data source via a web service.  Using the results of the query I need to build a ClassBreaksRenderer and apply it to a dynamic layer with a where clause to restrict the polygons.  The same where clause was used to get the data in the first place.

Example:

Polygon     Population
----------------------------
CSD1        125,121
CSD2        49,125
CSD3        495,824
CSD4        120,458
CSD5        325,958


Ideally I would like ranges that would include all the data, with equal sized ranges.  In the real app, there may be hundreds of values.

Could this be done client-side?  And if so, how would one construct the ranges.

Any help would be appreciated.
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
Did you look at this sample : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Thematic_Interactive ?

Seems close to what you need.
0 Kudos
VincenzoPiscitelli
Emerging Contributor
Did you look at this sample : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Thematic_Interactive ?

Seems close to what you need.


I don't know how I missed that sample.  I could have sworn that I examined each one.  Thanks for the info.  It is close to what I want and I can definitely expand on that sample.

Thanks again.
0 Kudos