<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SEDF Class Breaks by Size in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/sedf-class-breaks-by-size/m-p/786974#M1412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to produce a map like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/442430_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;I have a spatially enabled data frame with a column with numeric values (integers). I want vary the size of the symbol by value. I have found documentation for changing colors, which works fine, but I can't figure out how to change size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my current code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;red_rel&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;spatial&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;plot&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;map_widget&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; m3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                     renderer_type &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'c'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                     method&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'esriClassifyNaturalBreaks'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                     class_count&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                     col&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'MARK_Red'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I imagine it is a matter of changing the 'c' in renderer_type to something else but I haven't figured out what that is. There should also be a way to set a size range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, is there a way to clear the symbology so each time I run the script it doesn't just overwrite the previous symbology?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS API for Python v. 1.6&lt;/P&gt;&lt;P&gt;Jupyter Lab v. 0.35.4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 08:58:48 GMT</pubDate>
    <dc:creator>BenjaminSperry1</dc:creator>
    <dc:date>2021-12-12T08:58:48Z</dc:date>
    <item>
      <title>SEDF Class Breaks by Size</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/sedf-class-breaks-by-size/m-p/786974#M1412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to produce a map like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/442430_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;I have a spatially enabled data frame with a column with numeric values (integers). I want vary the size of the symbol by value. I have found documentation for changing colors, which works fine, but I can't figure out how to change size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my current code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;red_rel&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;spatial&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;plot&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;map_widget&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; m3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                     renderer_type &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'c'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                     method&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'esriClassifyNaturalBreaks'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                     class_count&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                     col&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'MARK_Red'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I imagine it is a matter of changing the 'c' in renderer_type to something else but I haven't figured out what that is. There should also be a way to set a size range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, is there a way to clear the symbology so each time I run the script it doesn't just overwrite the previous symbology?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS API for Python v. 1.6&lt;/P&gt;&lt;P&gt;Jupyter Lab v. 0.35.4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:58:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/sedf-class-breaks-by-size/m-p/786974#M1412</guid>
      <dc:creator>BenjaminSperry1</dc:creator>
      <dc:date>2021-12-12T08:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: SEDF Class Breaks by Size</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/sedf-class-breaks-by-size/m-p/1106519#M6729</link>
      <description>&lt;P&gt;Hi Benjamin,&lt;/P&gt;&lt;P&gt;I had the same issue and I managed to solve it&amp;nbsp;&lt;SPAN&gt;with a simple renderer and a size variable defined in the visual_variables property. date_zi is my spatially enabled dataframe:&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="solution.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24984i3CA1CE2F6493362C/image-size/large?v=v2&amp;amp;px=999" role="button" title="solution.png" alt="solution.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt;More information related to the size variable you can find&amp;nbsp; here:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/documentation/glossary/size-variable" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developers.arcgis.com/documentation/glossary/size-variable&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVar...&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 10:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/sedf-class-breaks-by-size/m-p/1106519#M6729</guid>
      <dc:creator>andrei_ste</dc:creator>
      <dc:date>2021-10-20T10:16:14Z</dc:date>
    </item>
  </channel>
</rss>

