I would like to create a ClassBreakRenderer to represent integer values. The symbols I am using are defined as PictureMarkerSymbols with JSON and they are just a filled blue circle with different sizes that were created with ArcMap 10.1 and published into ArcGIS Server. This is just to introduce the thing.
The problem is that in all the examples I see on the ArcGIS Javascript API about Rendering, the examples do always get the data from a particular column of a Feature Layer, but my data do NOT come from this data source: they come from an array of integers in client side. Just the symbol comes from the server-side, but not the integer value.
Is there any way of "tricking" the constructor of ClassBreakRenderer in order to accept an array (or collection, dictionary, set, whatever) of integers to be classified in symbols? There should be "life" a part of Feature Layers, isn't it?
Thanks for your help!
EDIT
The thing is that my data source is an array of integers like this:
var myArray = [15, 37, 47, 12, 125, 87, 36, 66, 10, 4, 18, 19, 23]
AND NOT:
var featureLayer = new esri.layers.FeatureLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3", {
mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,
outFields: ["*"],
And in principle, the ClassBreakRenderer receives a column of that Feature Layer as:
var renderer = new esri.renderer.ClassBreaksRenderer(symbol, "POP07_SQMI");
But I do NOT have that column "POP07_SQMI" I have an array called "myArray" and my question is that if it is possible to use the array instead of the column name that I don't have. Because world should not be limited to the existence of feature layers to retrieve data from them.... :S