<?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: Legend Values for Unclassed Symbology in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1324928#M82139</link>
    <description>&lt;P&gt;Have you &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/build-pyramids-and-statistics.htm" target="_self"&gt;built pyramids and calculated statistics&lt;/A&gt;? I believe that should properly display your values.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 19:56:46 GMT</pubDate>
    <dc:creator>SarahRijneke</dc:creator>
    <dc:date>2023-09-01T19:56:46Z</dc:date>
    <item>
      <title>Legend Values for Unclassed Symbology</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1324906#M82137</link>
      <description>&lt;P&gt;I have a polygon layer with unclassed colors symbology that is showing a range of values in the legend from -9223372036854776000 - 9223372036854776000.&amp;nbsp; How can I hide or change this in the legend?&amp;nbsp; I only really want to show the color ramp or the actual data range of -99 to 17,200.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Legend.JPG" style="width: 291px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79701i5A225C7A74DDD86E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Legend.JPG" alt="Legend.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 19:03:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1324906#M82137</guid>
      <dc:creator>JohnMax</dc:creator>
      <dc:date>2023-09-01T19:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Values for Unclassed Symbology</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1324928#M82139</link>
      <description>&lt;P&gt;Have you &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/build-pyramids-and-statistics.htm" target="_self"&gt;built pyramids and calculated statistics&lt;/A&gt;? I believe that should properly display your values.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 19:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1324928#M82139</guid>
      <dc:creator>SarahRijneke</dc:creator>
      <dc:date>2023-09-01T19:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Values for Unclassed Symbology</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1324938#M82140</link>
      <description>&lt;P&gt;This is actually a polygon layer which is symbolized as unclassed colors.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 20:21:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1324938#M82140</guid>
      <dc:creator>JohnMax</dc:creator>
      <dc:date>2023-09-01T20:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Values for Unclassed Symbology</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1325109#M82142</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10278"&gt;@JohnMax&lt;/a&gt;. Could you please share a Codepen, StackBlitz or GitHub repo demonstrating how you created the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html" target="_self"&gt;renderer&lt;/A&gt; on the layer.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 13:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1325109#M82142</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2023-09-03T13:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Values for Unclassed Symbology</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1325492#M82145</link>
      <description>&lt;P&gt;Here is some sample code:&lt;/P&gt;&lt;P&gt;&amp;lt;html lang="en"&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta charset="utf-8" /&amp;gt;&lt;BR /&gt;&amp;lt;meta&lt;BR /&gt;name="viewport"&lt;BR /&gt;content="initial-scale=1,maximum-scale=1,user-scalable=no"&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;&lt;BR /&gt;ArcGIS Maps SDK for JavaScript 4.27&lt;BR /&gt;&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link&lt;BR /&gt;rel="stylesheet"&lt;BR /&gt;href="&lt;A href="https://js.arcgis.com/4.27/esri/themes/light/main.css" target="_blank"&gt;https://js.arcgis.com/4.27/esri/themes/light/main.css&lt;/A&gt;"&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://js.arcgis.com/4.27/" target="_blank"&gt;https://js.arcgis.com/4.27/&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;html,&lt;BR /&gt;body,&lt;BR /&gt;#viewDiv {&lt;BR /&gt;padding: 0;&lt;BR /&gt;margin: 0;&lt;BR /&gt;height: 100%;&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;require(["esri/Map", "esri/views/MapView", "esri/layers/FeatureLayer","esri/widgets/Legend"], (&lt;BR /&gt;Map,&lt;BR /&gt;MapView,&lt;BR /&gt;FeatureLayer,&lt;BR /&gt;Legend&lt;BR /&gt;) =&amp;gt; {&lt;BR /&gt;const map = new Map({&lt;BR /&gt;basemap: "hybrid"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;const view = new MapView({&lt;BR /&gt;container: "viewDiv",&lt;BR /&gt;map: map,&lt;/P&gt;&lt;P&gt;center: [-113.58332, 37.10819], // lon, lat&lt;BR /&gt;zoom: 16,&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;/********************&lt;BR /&gt;* Add feature layer&lt;BR /&gt;********************/&lt;BR /&gt;const featureLayer = new FeatureLayer({&lt;BR /&gt;url: "&lt;A href="https://agisprodvm.washco.utah.gov/arcgis/rest/services/Assessor/MapServer/14" target="_blank"&gt;https://agisprodvm.washco.utah.gov/arcgis/rest/services/Assessor/MapServer/14&lt;/A&gt;"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;map.add(featureLayer);&lt;BR /&gt;&lt;BR /&gt;const legend = new Legend({&lt;BR /&gt;view: view,&lt;BR /&gt;layerInfos: [&lt;BR /&gt;{&lt;BR /&gt;layer: featureLayer&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;// Add widget to the bottom right corner of the view&lt;BR /&gt;view.ui.add(legend, "bottom-right");&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 16:57:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1325492#M82145</guid>
      <dc:creator>JohnMax</dc:creator>
      <dc:date>2023-09-05T16:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Values for Unclassed Symbology</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1325530#M82149</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10278"&gt;@JohnMax&lt;/a&gt;&amp;nbsp;.&amp;nbsp; It looks like you are using the renderer as it was defined when publishing the service. Likely the easiest and most permanent way would be to modify the symbology for the layer in the original ArcGIS Pro project and republish the service. If that's not possible you can set your own renderer for the layer in the app code.&amp;nbsp; In this codepen I set two stops one at -99 and the other at 17,200 and set the label to "Parcel" for a&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html" target="_self"&gt; simple renderer&lt;/A&gt; with a color visual variable.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/jOXVyNN" target="_blank"&gt;https://codepen.io/sagewall/pen/jOXVyNN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another sample showing basically the same thing:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/visualization-vv-color/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/visualization-vv-color/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 18:02:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1325530#M82149</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2023-09-05T18:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Values for Unclassed Symbology</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1325578#M82151</link>
      <description>&lt;P&gt;Thank you!!&amp;nbsp; There was no way I could see to change the symbology of the service that would change the values in the legend.&amp;nbsp; This is exactly what I needed. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 19:06:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1325578#M82151</guid>
      <dc:creator>JohnMax</dc:creator>
      <dc:date>2023-09-05T19:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Values for Unclassed Symbology</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1325582#M82152</link>
      <description>&lt;P&gt;I am having the same exact issue however I don't have an understanding of the coding side of GIS. Could I get a step-by-step instruction on how to fix the problem.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am using unclassed colors to symbolize a set of polygons by a range of numerical values and for some reason in my webmap legend I am getting an output of those numbers (&lt;SPAN&gt;-9223372036854776000 - 9223372036854776000)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 19:15:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1325582#M82152</guid>
      <dc:creator>Joe1</dc:creator>
      <dc:date>2023-09-05T19:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Values for Unclassed Symbology</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1325637#M82153</link>
      <description>&lt;P&gt;I'm no expert, but this sample code helped me a lot.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=visualization-vv-color" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=visualization-vv-color&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the sample you define the symbology in a constant called renderer.&amp;nbsp; Then you add the it to the feature layer using renderer: renderer.&amp;nbsp; In this way you can control the legend text using the label: properties in the code. &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 21:00:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-values-for-unclassed-symbology/m-p/1325637#M82153</guid>
      <dc:creator>JohnMax</dc:creator>
      <dc:date>2023-09-05T21:00:22Z</dc:date>
    </item>
  </channel>
</rss>

