<?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: Adjusting Graduated Symbols by Scale (API 4.x) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-graduated-symbols-by-scale-api-4-x/m-p/1198295#M78139</link>
    <description>&lt;P&gt;Hey Matthew,&lt;/P&gt;&lt;P&gt;I don't believe this will work when you classify data using size. I could be wrong, so I would need to try it. The examples in the blogs only use continuous size (no class breaks).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 21:38:18 GMT</pubDate>
    <dc:creator>KristianEkenes</dc:creator>
    <dc:date>2022-08-01T21:38:18Z</dc:date>
    <item>
      <title>Adjusting Graduated Symbols by Scale (API 4.x)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-graduated-symbols-by-scale-api-4-x/m-p/1193578#M77974</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to create an HTML document that can display my ArcGIS Online map. Everything has gone well so far and I've been using other Esri resources to answer any questions I might have.&lt;/P&gt;&lt;P&gt;The map displays graduated symbols (I've created 5 classes - I will attach a screenshot of the legend). Each country displays a certain number ("Distinct Count of Usernames" in this case) and then the corresponding symbol. At the starting scale they all look appropriately sized. However, as you zoom in, the small classes become incredibly difficult to see and click.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been looking around and trying new solutions/ideas for a few days now and ended up finding these:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/how-and-why-to-adjust-size-by-scale-in-web-maps/" target="_blank" rel="noopener"&gt;https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/how-and-why-to-adjust-size-by-scale-in-web-maps/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Adjust point symbol scaling (API 4.x)" uid="1141512" url="https://community.esri.com/t5/arcgis-api-for-javascript-questions/adjust-point-symbol-scaling-api-4-x/m-p/1141512#U1141512" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read through these and been using their ideas, unfortunately, the symbols are still not changing size.&lt;/P&gt;&lt;P&gt;Here is the script:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;script&amp;gt;
 const sizeVisVar = {
  type: "size",
  field: "Distinct Count of Usernames",
  minDataValue: 42,
  maxDataValue: 763,
  minSize: {
   type: "size",
   valueExpression: "$view.scale",
   stops: [
    { value: 18489298, size: 14 }, 
    { value: 36978595, size: 8 },
    { value: 73957191, size: 6 },
    { value: 147914382, size: 4 } 
   ]
  },
  maxSize: {
   type: "size",
   valueExpression: "$view.scale",
   stops: [
    { value: 18489298, size: 115 }, 
    { value: 36978595, size: 75 },
    { value: 73957191, size: 58 },
    { value: 147914382, size: 50 }
   ]
  }
  };
 renderer.visualVariables = [ sizeVisVar ];
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They still remain fixed at the same size, no matter the scale.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the screenshot of the legend:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (19).png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46203i769C59A00972DDB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot (19).png" alt="Screenshot (19).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note: I used 42 as my minimum because all countries with that value or less&amp;nbsp; will display the same symbol. Same idea with 763 as my maximum.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd appreciate any help on this!&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matthew&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 16:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-graduated-symbols-by-scale-api-4-x/m-p/1193578#M77974</guid>
      <dc:creator>MatthewWoodland</dc:creator>
      <dc:date>2022-08-08T16:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting Graduated Symbols by Scale (API 4.x)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-graduated-symbols-by-scale-api-4-x/m-p/1198295#M78139</link>
      <description>&lt;P&gt;Hey Matthew,&lt;/P&gt;&lt;P&gt;I don't believe this will work when you classify data using size. I could be wrong, so I would need to try it. The examples in the blogs only use continuous size (no class breaks).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 21:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-graduated-symbols-by-scale-api-4-x/m-p/1198295#M78139</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-08-01T21:38:18Z</dc:date>
    </item>
  </channel>
</rss>

