The feature reduction binning drawingInfo object contains drawing information, such as labelingInfo and renderer, for feature layer binning.
Referenced by: Feature Reduction Binning
Properties
| Property | Details |
|---|---|
| labelingInfo[] | An object defining the properties used for labeling bins. |
| renderer | An object defining the symbology of the bins. |
Bins colored by count Example
Bins visualized with a simple renderer and a color variable to color the bin by count.
{ "renderer": { "type": "simple", "symbol": { "color": [ 0, 0, 128, 128 ], "size": 15, "angle": 0, "xoffset": 0, "yoffset": 0, "type": "esriSMS", "style": "esriSMSCircle", "outline": { "color": [ 0, 0, 128, 255 ], "width": 0.99975, "type": "esriSLS", "style": "esriSLSSolid" } }, "visualVariables": [ { "type": "colorInfo", "field": "aggregateCount", "stops": [ { "value": 1, "color": [ 255, 252, 212, 255 ] }, { "value": 500, "color": [ 98, 158, 176, 255 ] }, { "value": 1000, "color": [ 13, 38, 68, 255 ] } ] } ] }}Visualizes bins based off the sum of an attribute. Example
{ "renderer": { "type": "simple", "symbol": { "color": [ 0, 0, 128, 128 ], "size": 15, "angle": 0, "xoffset": 0, "yoffset": 0, "type": "esriSMS", "style": "esriSMSCircle", "outline": { "color": [ 0, 0, 128, 255 ], "width": 0.99975, "type": "esriSLS", "style": "esriSLSSolid" } }, "visualVariables": [ { "type": "sizeInfo", "field": "sum_population", "valueUnit": "unknown", "minSize": 6, "maxSize": 37.5, "minDataValue": 100, "maxDataValue": 100000 } ] }}Visualizes bins as pie charts sized by an aggregate field. Example
{ "renderer": { "type": "pieChart", "visualVariables": [ { "type": "sizeInfo", "field": "SUM_ALL_INJURED", "stops": [ { "size": 8, "value": 1 }, { "size": 12, "value": 100 }, { "size": 40, "value": 400 } ] } ], "attributes": [ { "color": [ 217, 43, 48, 255 ], "field": "SUM_MOTORIST_INJURED", "label": "Injured motorists" }, { "color": [ 0, 149, 186, 255 ], "field": "SUM_CYCLIST_INJURED", "label": "Injured cyclists" }, { "color": [ 60, 204, 180, 255 ], "field": "SUM_PEDESTRIANS_INJURED", "label": "Injured pedestrians" }, { "color": [ 255, 223, 60, 255 ], "field": "SUM_KILLED", "label": "Fatalities" }, { "color": [ 194, 124, 48, 64 ], "valueExpression": "$feature.cluster_count - $feature.SUM_KILLED - $feature.SUM_PERSONS_INJURED", "valueExpressionTitle": "No injuries" } ], "holePercentage": 0, "othersCategory": { "color": [ 0, 0, 0, 0 ], "threshold": 0 }, "outline": { "type": "esriSLS", "color": [ 255, 255, 255, 255 ], "width": 0, "style": "esriSLSSolid" }, "size": 8 }}