<?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 Re: Assign Values to Breaks in Graduated Colors Symbology - ArcGIS Pro in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/assign-values-to-breaks-in-graduated-colors/m-p/129105#M10020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GraduatedColorsRenderer looks more like something to adjust the actual color of the symbology. I want to be able to say something along the lines of ---&amp;nbsp;&lt;SPAN style="font-size: 11.0pt;"&gt;there are 3 breaks --- break one = 4, break two = 7, break three = 15 (in Python code obviously)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2018 16:49:35 GMT</pubDate>
    <dc:creator>Business_IntelligenceSoftware</dc:creator>
    <dc:date>2018-01-10T16:49:35Z</dc:date>
    <item>
      <title>Assign Values to Breaks in Graduated Colors Symbology - ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/assign-values-to-breaks-in-graduated-colors/m-p/129103#M10018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729;"&gt;In ArcMap you could assign values to each break within a layer's graduated color symbology using&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #242729; border: none windowtext 1.0pt; padding: 0in; background: #EFF0F1;"&gt;classBreakValues&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729;"&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #242729; border: none windowtext 1.0pt; padding: 0in; background: #EFF0F1;"&gt;classBreakLabels&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729;"&gt;&amp;nbsp;(A code sample of this can be seen on this page&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/graduatedcolorssymbology-class.htm" style="font-style: inherit; font-weight: inherit; font-size: inherit;"&gt;&lt;SPAN style="color: #358daa; border: none windowtext 1.0pt; padding: 0in; text-decoration: none;"&gt;http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/graduatedcolorssymbology-class.htm&lt;/SPAN&gt;&lt;/A&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729;"&gt;However, I have now transitioned over to ArcGIS Pro and since the ArcPy between Map and Pro are different I can't figure out how to assign values to each break within a layer's graduated color symbology.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729;"&gt;At first I thought that the ClassBreak (&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/classbreak-class.htm" style="font-style: inherit; font-weight: inherit; font-size: inherit;"&gt;&lt;SPAN style="color: #358daa; border: none windowtext 1.0pt; padding: 0in; text-decoration: none;"&gt;https://pro.arcgis.com/en/pro-app/arcpy/mapping/classbreak-class.htm&lt;/SPAN&gt;&lt;/A&gt;) would accomplish what I'm looking for but once I looked at the sample code I don't think it will.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #242729;"&gt;Is it possible to assign values to each break within a layer's graduated color symbology in ArcGIS Pro?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;&lt;SPAN&gt;Am I correct in thinking that the ClassBreak will not accomplish what I'm trying to do?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 15:50:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/assign-values-to-breaks-in-graduated-colors/m-p/129103#M10018</guid>
      <dc:creator>Business_IntelligenceSoftware</dc:creator>
      <dc:date>2018-01-10T15:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Values to Breaks in Graduated Colors Symbology - ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/assign-values-to-breaks-in-graduated-colors/m-p/129104#M10019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe this&amp;nbsp;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/graduatedcolorsrenderer-class.htm"&gt;http://pro.arcgis.com/en/pro-app/arcpy/mapping/graduatedcolorsrenderer-class.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 16:24:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/assign-values-to-breaks-in-graduated-colors/m-p/129104#M10019</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-10T16:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Values to Breaks in Graduated Colors Symbology - ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/assign-values-to-breaks-in-graduated-colors/m-p/129105#M10020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GraduatedColorsRenderer looks more like something to adjust the actual color of the symbology. I want to be able to say something along the lines of ---&amp;nbsp;&lt;SPAN style="font-size: 11.0pt;"&gt;there are 3 breaks --- break one = 4, break two = 7, break three = 15 (in Python code obviously)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 16:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/assign-values-to-breaks-in-graduated-colors/m-p/129105#M10020</guid>
      <dc:creator>Business_IntelligenceSoftware</dc:creator>
      <dc:date>2018-01-10T16:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Values to Breaks in Graduated Colors Symbology - ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/assign-values-to-breaks-in-graduated-colors/m-p/129106#M10021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;all in the same area that I pointed to... you may have to poke around in the classes yourself since ma became mapping and some of the functionality/classes moved and/or were renamed&lt;/P&gt;&lt;P&gt;ie&amp;nbsp;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/graduatedsymbolsrenderer-class.htm"&gt;http://pro.arcgis.com/en/pro-app/arcpy/mapping/graduatedsymbolsrenderer-class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/classbreak-class.htm"&gt;http://pro.arcgis.com/en/pro-app/arcpy/mapping/classbreak-class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;sorry, I don't make maps very often&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 16:59:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/assign-values-to-breaks-in-graduated-colors/m-p/129106#M10021</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-10T16:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Values to Breaks in Graduated Colors Symbology - ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/assign-values-to-breaks-in-graduated-colors/m-p/129107#M10022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have made some progress from my original question. I now have some code that will assign a value to the first break in the symbology, and then tell the following breaks what number they should be equal to, based on the factor of increase I choose. For example I can tell the first break to be equal to 3 and the following breaks to be increases of 7; so the next two breaks would have values of 10 and 17. However, I still want to be able to assign random numbers to each break and cant figure out how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code I have so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy, os, sys, locale&lt;BR /&gt;p = arcpy.mp.ArcGISProject("Current")&lt;BR /&gt;m = p.listMaps("Map")[0]&lt;BR /&gt;l = m.listLayers("ProvEPOSigNet_ZIPs")[0]&lt;BR /&gt;sym = l.symbology&lt;BR /&gt;sym.renderer.classificationField = "SUM_USER_Patient_Count"&lt;BR /&gt;sym.renderer.breakCount =&amp;nbsp;3&lt;/P&gt;&lt;P&gt;breakVal = 2&lt;/P&gt;&lt;P&gt;for brk in sym.renderer.classBreaks:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;brk.upperBound = breakVal&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;brk.label = "\u2264" + str(locale.format("%d", breakVal, grouping=True))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;breakVal +=8&lt;BR /&gt;l.symbology = sym&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 20:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/assign-values-to-breaks-in-graduated-colors/m-p/129107#M10022</guid>
      <dc:creator>Business_IntelligenceSoftware</dc:creator>
      <dc:date>2018-01-10T20:55:22Z</dc:date>
    </item>
  </channel>
</rss>

