<?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 ClassBreaksRenderer - Graduated Symbols in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/classbreaksrenderer-graduated-symbols/m-p/1068804#M20327</link>
    <description>&lt;P&gt;Assigning the Quantities - Graduated Symbols for one field. The TOC is showing an updated symbolize but not in the UI shown in the attached snapshot.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;IClassBreaksRenderer classBreaksRenderer = new ClassBreaksRendererClass();
classBreaksRenderer.Field = "BRNGTRUE";
classBreaksRenderer.BreakCount = classCount;
classBreaksRenderer.MinimumBreak = classBreaks[0];
classBreaksRenderer.SortClassesAscending = true;

IClassBreaksUIProperties classBreaksUIProperties = classBreaksRenderer as IClassBreaksUIProperties;
classBreaksUIProperties.Method = pClassifyGEN.ClassID;


ISymbol simpleMarkerSymbol = GetMarkerSymbol();
IFillSymbol fillSymbol = GetFillSymbol() as IFillSymbol;

classBreaksRenderer.BackgroundSymbol = fillSymbol;

//Through a loop, attach rendering symbol to all rendered levels
for (int i = 0; i &amp;lt; classCount; i++)
{
	////Specify the symbol for hierarchical rendering (Symbol)
	classBreaksRenderer.Symbol[i] = simpleMarkerSymbol;                    
	classBreaksRenderer.Break[i] = classBreaks[i];

	if (i == 0)
	{
		classBreaksUIProperties.LowBreak[i] = classBreaks[i];
		classBreaksRenderer.Label[i] = string.Format("{0}", classBreaks[i]);
	}
	else
	{
		classBreaksUIProperties.LowBreak[i] = classBreaks[i - 1] + 0.000001;
		classBreaksRenderer.Label[i] = string.Format("{0} - {1}", classBreaks[i - 1] + 0.000001, classBreaks[i] + 0.000000);
	}

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sonj_0-1623838035582.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16075iBE6B2B6C2478FCD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sonj_0-1623838035582.png" alt="sonj_0-1623838035582.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 10:08:14 GMT</pubDate>
    <dc:creator>sonj</dc:creator>
    <dc:date>2021-06-16T10:08:14Z</dc:date>
    <item>
      <title>ClassBreaksRenderer - Graduated Symbols</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classbreaksrenderer-graduated-symbols/m-p/1068804#M20327</link>
      <description>&lt;P&gt;Assigning the Quantities - Graduated Symbols for one field. The TOC is showing an updated symbolize but not in the UI shown in the attached snapshot.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;IClassBreaksRenderer classBreaksRenderer = new ClassBreaksRendererClass();
classBreaksRenderer.Field = "BRNGTRUE";
classBreaksRenderer.BreakCount = classCount;
classBreaksRenderer.MinimumBreak = classBreaks[0];
classBreaksRenderer.SortClassesAscending = true;

IClassBreaksUIProperties classBreaksUIProperties = classBreaksRenderer as IClassBreaksUIProperties;
classBreaksUIProperties.Method = pClassifyGEN.ClassID;


ISymbol simpleMarkerSymbol = GetMarkerSymbol();
IFillSymbol fillSymbol = GetFillSymbol() as IFillSymbol;

classBreaksRenderer.BackgroundSymbol = fillSymbol;

//Through a loop, attach rendering symbol to all rendered levels
for (int i = 0; i &amp;lt; classCount; i++)
{
	////Specify the symbol for hierarchical rendering (Symbol)
	classBreaksRenderer.Symbol[i] = simpleMarkerSymbol;                    
	classBreaksRenderer.Break[i] = classBreaks[i];

	if (i == 0)
	{
		classBreaksUIProperties.LowBreak[i] = classBreaks[i];
		classBreaksRenderer.Label[i] = string.Format("{0}", classBreaks[i]);
	}
	else
	{
		classBreaksUIProperties.LowBreak[i] = classBreaks[i - 1] + 0.000001;
		classBreaksRenderer.Label[i] = string.Format("{0} - {1}", classBreaks[i - 1] + 0.000001, classBreaks[i] + 0.000000);
	}

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sonj_0-1623838035582.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16075iBE6B2B6C2478FCD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sonj_0-1623838035582.png" alt="sonj_0-1623838035582.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 10:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classbreaksrenderer-graduated-symbols/m-p/1068804#M20327</guid>
      <dc:creator>sonj</dc:creator>
      <dc:date>2021-06-16T10:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: ClassBreaksRenderer - Graduated Symbols</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classbreaksrenderer-graduated-symbols/m-p/1069230#M20328</link>
      <description>&lt;P&gt;The Legend Info has to update then it will display the symbols correctly. Posting it here may help someone who is looking code snippet.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ILegendInfo legendInfo = classBreaksRenderer as ILegendInfo;
legendInfo.SymbolsAreGraduated = true;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 06:19:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classbreaksrenderer-graduated-symbols/m-p/1069230#M20328</guid>
      <dc:creator>sonj</dc:creator>
      <dc:date>2021-06-17T06:19:17Z</dc:date>
    </item>
  </channel>
</rss>

