<?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 Graphics Layer with continuous color in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-layer-with-continuous-color/m-p/1176275#M77425</link>
    <description>&lt;P&gt;Is it possible to mimic the continuous color renderer for a graphics layer as shown in this &lt;A href="https://developers.arcgis.com/javascript/latest/visualization/best-practices/classed-vs-continuous/#continuous-color" target="_self"&gt;documentation&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;A graphics layer does not use the renderer property so this aproach is not possible.&lt;/P&gt;&lt;P&gt;This graphics layer is dynamically created so the values would be different depending on the query of the layer.&lt;/P&gt;&lt;P&gt;I am able to do this with a feature layer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_0-1653271217585.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41903iD0E4458DCA183CF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_0-1653271217585.png" alt="julian_svcs_0-1653271217585.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use the following stop values:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;stops: [
    {
    value: 0,
    color: "#0c7f3f",
    label: "0"
    },
    {
    value: 15,
    color: "#69bd45",
    label: "15"
    },
    {
    value: 30,
    color: "#f3ec0c",
    label: "30"
    },
    {
    value: 45,
    color: "#f57f22",
    label: "45"
    },
    {
    value: 60,
    color: "#ee2025",
    label: "60"
    },
    {
    value: 300000,
    color: "#9e9fa0",
    label: "90 &amp;lt;"
    }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2022 02:00:58 GMT</pubDate>
    <dc:creator>julian_svcs</dc:creator>
    <dc:date>2022-05-23T02:00:58Z</dc:date>
    <item>
      <title>Graphics Layer with continuous color</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-layer-with-continuous-color/m-p/1176275#M77425</link>
      <description>&lt;P&gt;Is it possible to mimic the continuous color renderer for a graphics layer as shown in this &lt;A href="https://developers.arcgis.com/javascript/latest/visualization/best-practices/classed-vs-continuous/#continuous-color" target="_self"&gt;documentation&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;A graphics layer does not use the renderer property so this aproach is not possible.&lt;/P&gt;&lt;P&gt;This graphics layer is dynamically created so the values would be different depending on the query of the layer.&lt;/P&gt;&lt;P&gt;I am able to do this with a feature layer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_0-1653271217585.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41903iD0E4458DCA183CF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_0-1653271217585.png" alt="julian_svcs_0-1653271217585.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use the following stop values:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;stops: [
    {
    value: 0,
    color: "#0c7f3f",
    label: "0"
    },
    {
    value: 15,
    color: "#69bd45",
    label: "15"
    },
    {
    value: 30,
    color: "#f3ec0c",
    label: "30"
    },
    {
    value: 45,
    color: "#f57f22",
    label: "45"
    },
    {
    value: 60,
    color: "#ee2025",
    label: "60"
    },
    {
    value: 300000,
    color: "#9e9fa0",
    label: "90 &amp;lt;"
    }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 02:00:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-layer-with-continuous-color/m-p/1176275#M77425</guid>
      <dc:creator>julian_svcs</dc:creator>
      <dc:date>2022-05-23T02:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics Layer with continuous color</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-layer-with-continuous-color/m-p/1176277#M77426</link>
      <description>&lt;P&gt;You can't use renderers with a GraphicsLayer, but you can create a client-side FeatureLayer with your collection of graphics and use all the same renderer features with it. Here is a sample using a client-side FeatureLayer.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Once it's a FeatureLayer, you can use all the same capabilities, editing, renderers, filters, effects, all of it.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 02:41:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-layer-with-continuous-color/m-p/1176277#M77426</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-05-23T02:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics Layer with continuous color</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-layer-with-continuous-color/m-p/1176629#M77452</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;. I got this to work but it is soooo much slower than the graphics option. I would prefer to use the graphics option for better performance.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 20:47:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-layer-with-continuous-color/m-p/1176629#M77452</guid>
      <dc:creator>julian_svcs</dc:creator>
      <dc:date>2022-05-23T20:47:13Z</dc:date>
    </item>
  </channel>
</rss>

