Plot with Class Breaks Renderer with Different Size

645
1
Jump to solution
03-12-2021 02:38 AM
andrei_ste
New Contributor III

Hello everyone,

I would like to plot from a spatially enabled dataframe some point features with graduaded symbols. I tried the solution from this post, it works perfectly but I don't want to import the data to ArcGIS Online and then added as a layer to my map: https://community.esri.com/t5/arcgis-api-for-python-questions/using-graduatedsymbolsrenderer-with-sp...

I would like not to create additional hosted layers. Reading the article Visualizing spatial data with spatially enabled dataframes, I found at supported renderers, that you can use the Class Breaks Renderer to render each group of values with a different color or size: https://developers.arcgis.com/python/guide/visualizing-data-with-the-spatially-enabled-dataframe/

For now I managed to use the Class Breaks Renderer to display my point features with different colors based upon a field. Does anyone have an example on how I can set up the Class Breaks Renderer to display my point features with different sizes, not colors?

Thank you so much,

Andrei Stefan

 

0 Kudos
1 Solution

Accepted Solutions
andrei_ste
New Contributor III

I managed to solve my problem with a simple renderer and a size variable defined in the visual_variables property. date_zi is my spatially enabled dataframe: solution.pngMore information related to the size variable you can find  here: https://developers.arcgis.com/documentation/glossary/size-variable

Although the examples provided in the following link are for the Javascript API for ArcGIS, they work also for the Python API since they are both built upon the ArcGIS REST API. The difference is that for the Python API you need each key to be written between commas: https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVar...

View solution in original post

0 Kudos
1 Reply
andrei_ste
New Contributor III

I managed to solve my problem with a simple renderer and a size variable defined in the visual_variables property. date_zi is my spatially enabled dataframe: solution.pngMore information related to the size variable you can find  here: https://developers.arcgis.com/documentation/glossary/size-variable

Although the examples provided in the following link are for the Javascript API for ArcGIS, they work also for the Python API since they are both built upon the ArcGIS REST API. The difference is that for the Python API you need each key to be written between commas: https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVar...

0 Kudos