Skip to content

plotting for a specific column in feature layer in 3-Working-with-AGOL-Items doesn't work #3

@deeper747

Description

@deeper747

#Map just Durham records and color by a field value
map2 = gis.map('Durham County, NC') #Create the map object, centered on Durham, NC
map2.add_layer(tractsLayer,{"definition_expression":"COUNTY='Durham'", #Filter records for just Durham
"renderer":"ClassedColorRenderer", #Create a color renderer object
"field_name":"POPULATION", #Color based on the POPULATION field values
"opacity":0.7 #Lighten the opacity
})
map2

Screenshot 2023-12-01 at 10 34 08 PM

error message:

Could not update layer. [feature-layer-adapter:insufficient-data]: No features are available to calculate statistics See the browser console for more info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions