<?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: Re: Legend with Class Break Renderer normalization in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841944#M9453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have, and the layer does refresh on the map:&lt;/P&gt;&lt;P&gt;this.map.getLayer("tracts").refresh();&lt;/P&gt;&lt;P&gt;But the legend does not refresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 21:57:24 GMT</pubDate>
    <dc:creator>DavidTreering2</dc:creator>
    <dc:date>2018-02-06T21:57:24Z</dc:date>
    <item>
      <title>Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841939#M9448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; See if this helps:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; classDef&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;breakCount &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; classDef&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;classificationMethod &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"quantile"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; classDef&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;type &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"classBreaksDef"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;selectNorm&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;get&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'value'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; classDef&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;normalizationType &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"field"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; classDef&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;normalizationField &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;selectNorm&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;get&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'value'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&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;/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841939#M9448</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T10:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841940#M9449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- David Treering, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 17:02:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841940#M9449</guid>
      <dc:creator>DavidTreering2</dc:creator>
      <dc:date>2018-02-06T17:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841941#M9450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Don’t forget to mark your question as answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 17:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841941#M9450</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-06T17:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841942#M9451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't figure out why the legend will not refresh until I change the view or navigate.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;startup: function() {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this.own(on(this.selectField, "change", lang.hitch(this, this.onFieldChange, this.legendRefresh)));&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;legendRefresh: function(evt){&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this.legend.refresh();&lt;BR /&gt; },&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I tried to add this.legend.refresh(); to the end of onFieldChange, but it doesn't make sense having to call legend.refresh() right after legend.startup() runs within the createLegend function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 20:53:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841942#M9451</guid>
      <dc:creator>DavidTreering2</dc:creator>
      <dc:date>2018-02-06T20:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841943#M9452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Have you tried a layer refresh?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 21:15:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841943#M9452</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-06T21:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841944#M9453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have, and the layer does refresh on the map:&lt;/P&gt;&lt;P&gt;this.map.getLayer("tracts").refresh();&lt;/P&gt;&lt;P&gt;But the legend does not refresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 21:57:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841944#M9453</guid>
      <dc:creator>DavidTreering2</dc:creator>
      <dc:date>2018-02-06T21:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841945#M9454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think you attached the wrong Widget.js. That one you attached is for Google Earth or something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 22:02:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841945#M9454</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-06T22:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841946#M9455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I edited that post now with the correct attachments, sorry!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 22:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841946#M9455</guid>
      <dc:creator>DavidTreering2</dc:creator>
      <dc:date>2018-02-06T22:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841947#M9456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Give these changes a try. Basically you where refreshing and trying to recreate the legend before the new renderer was applied.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 22:38:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841947#M9456</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-06T22:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841948#M9457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very helpful.&amp;nbsp; It won't let me mark this as the answer, maybe because I branched the discussion from one of your posts?&amp;nbsp; Anyway, if you ever get to Chicago, I need to buy you a drink!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 19:58:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841948#M9457</guid>
      <dc:creator>DavidTreering2</dc:creator>
      <dc:date>2018-02-09T19:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841949#M9458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem. I thought it was strange when I saw my name as the original poster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 20:25:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841949#M9458</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-09T20:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841950#M9459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble setting the value of the dropdown fields.&amp;nbsp; Am I in the ballpark?&lt;/P&gt;&lt;P&gt;this.selectField.set("value", selectField.options[2]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 22:12:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841950#M9459</guid>
      <dc:creator>DavidTreering2</dc:creator>
      <dc:date>2018-02-09T22:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Legend with Class Break Renderer normalization</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841951#M9460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;selectField&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;set&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"value"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;selectField&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;options&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;value&lt;SPAN class="punctuation token"&gt;)&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 22:25:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/re-legend-with-class-break-renderer-normalization/m-p/841951#M9460</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-09T22:25:00Z</dc:date>
    </item>
  </channel>
</rss>

