<?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: JSAPI 4.2 How exactly to set up visualVariables to generate univariate continuous size and color visualization in 3D in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-2-how-exactly-to-set-up-visualvariables-to/m-p/583703#M54524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all these details! I did some investigating and it turns out I get this error when using the&amp;nbsp;"streets-relief-vector" basemap in my SceneView:&lt;/P&gt;&lt;P&gt;d {name: "size-visual-variable:insufficient-info", message: "Unable to find size scheme", details: undefined}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it works wonderfully if I use the "topo" basemap. Yes, this is very straightforward and love all the under the hood action here.&lt;/P&gt;&lt;P&gt;The only thing I would really want to change programmatically is the min and max symbol size (the cylinders). Is there a way to adjust those properties?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested this with all the basemap options and there are many this will not work with. Here are the results with their error messages:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"streets" - works great&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"satellite" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"hybrid" - works great&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"topo" - works great&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"gray" - works great&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"dark-gray" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"oceans" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"national-geographic" - works great&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"terrain" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"osm" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"dark-gray-vector" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"gray-vector" - init.js:308 [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"streets-vector" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"topo-vector" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"streets-night-vector" - d {name: "size-visual-variable:insufficient-info", message: "Unable to find size scheme", details: undefined}&lt;/P&gt;&lt;P&gt;"streets-relief-vector" - d {name: "size-visual-variable:insufficient-info", message: "Unable to find size scheme", details: undefined}&lt;/P&gt;&lt;P&gt;"streets-navigation-vector" - d {name: "size-visual-variable:insufficient-info", message: "Unable to find size scheme", details: undefined}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jan 2017 13:37:35 GMT</pubDate>
    <dc:creator>DavidChrest</dc:creator>
    <dc:date>2017-01-27T13:37:35Z</dc:date>
    <item>
      <title>JSAPI 4.2 How exactly to set up visualVariables to generate univariate continuous size and color visualization in 3D</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-2-how-exactly-to-set-up-visualvariables-to/m-p/583701#M54522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I love this great sample with the slider:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/visualization-sm-uni-colorsize/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/visualization-sm-uni-colorsize/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Generate univariate continuous size and color visualization in 3D | ArcGIS API for JavaScript 4.2&lt;/A&gt;&amp;nbsp; and I want to do something just like this but instead using a simple schools wpoint FeatureLayer with number of students instead of cities with population like the sample shows.&lt;/P&gt;&lt;P&gt;So I add in my code essentially based just like the sample code but just switching out for my schools FeatureLayer. I then get this error:&amp;nbsp;there was an error: &amp;nbsp;d {name: "size-visual-variable:insufficient-info", message: "Unable to find size scheme", details: undefined}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Turns out I need to set up my visualVariables (and statistics too) inside the colorAndSizeRendererCreator.createContinuousRenderer(params):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; sizeVV &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;size&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visualVariable&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; colorVV &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visualVariable&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

sliderParams&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;statistics &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;statistics&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
sliderParams&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visualVariables &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;sizeVV&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; colorVV&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Turns out the FetureLayer in the sample has this all set up with "Drawing Info" in the FeatureLayer's service:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Enriched%20World%20Cities/FeatureServer/0" title="https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Enriched%20World%20Cities/FeatureServer/0" rel="nofollow noopener noreferrer" target="_blank"&gt;https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Enriched%20World%20Cities/FeatureServer/0&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;So how do I set up these important statistics and visualVariables for my schools FeatureLayer by JS code. The snippets below the map in this sample page (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/visualization-sm-uni-colorsize/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/visualization-sm-uni-colorsize/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Generate univariate continuous size and color visualization in 3D | ArcGIS API for JavaScript 4.2&lt;/A&gt;&amp;nbsp;) are quite confusing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this refereing to the assigned renderer in my renderer: property in my FeatureLayer?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #006a00;"&gt;// set the renderer to the layer&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; povLyr.renderer = response.renderer;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;Ande where exacttly atre these sizeVV and colorVV coming from? They are not set up in my rendere.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;visualVariables: [ sizeVV, colorVV ]?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN class="" style="color: #006a00;"&gt;// size/color visual variables returned from createContinuousRenderer(),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There must be a straightforward code example to set up a common slider scenario with size, color, field max/min values, etc. &amp;nbsp;The set-up for the Thematic multivariate 3D visualization shows very well the symbolization syntax (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/visualization-multivariate-3d/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/visualization-multivariate-3d/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Thematic multivariate visualization (3D) | ArcGIS API for JavaScript 4.2&lt;/A&gt;&amp;nbsp;) for this slide example I'm pretty lost.&lt;/P&gt;&lt;P&gt;Any help is very much appreciated.&lt;/P&gt;&lt;P&gt;Much Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:06:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-2-how-exactly-to-set-up-visualvariables-to/m-p/583701#M54522</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2021-12-12T01:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI 4.2 How exactly to set up visualVariables to generate univariate continuous size and color visualization in 3D</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-2-how-exactly-to-set-up-visualvariables-to/m-p/583702#M54523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The smartMapping API is all about generating a new renderer based on the statistics of your data. So the existing renderer on your service doesn't play a factor in this scenario. I'll try to go over the workflow as best I can. Please continue to ask questions if this is still confusing or if it's not exactly what you're looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;Turns out the FetureLayer in the sample has this all set up with "Drawing Info" in the FeatureLayer's service:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices.arcgis.com%2FV6ZHFr6zdgNZuVG0%2FArcGIS%2Frest%2Fservices%2FEnriched%2520World%2520Cities%2FFeatureServer%2F0" style="color: #287433; border: 0px; font-weight: inherit; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Enriched%20World%20Cities/FeatureServer/0&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;This drawingInfo is ignored in the sample. We want to generate a renderer&amp;nbsp;on our own when the data loads. The renderer we generate will contain the visual variables you're looking for. So we call call&amp;nbsp;colorAndSizeRendererCreator.createContinuousRenderer() to do this.&amp;nbsp;The response object from this method also contains the visual variables conveniently so you don't have to search for specific ones in the renderer. To call the method, first set your params...&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; params &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; layer&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; povLyr&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// your layer&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;basemap&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;// basemap to choose "best" color scheme&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; field&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"POP"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;// field used to generate the visual variables&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; view&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;// the initial sizes are based on your current view (this will actually likely change in a future release)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; symbolType&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"3d-volumetric"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;// This indicates 3D object symbols will be used.&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; minValue&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;// this is optional&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;/CODE&gt;&lt;/PRE&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;So how do I set up these important statistics and visualVariables for my schools FeatureLayer by JS code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;When the method resolves you can then grab the generated visual variables and statistics objects and set them in the slider widget. They are properties of the response object. See -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-smartMapping-creators-univariateColorSize.html#typedefinitions-summary" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-smartMapping-creators-univariateColorSize.html#typedefinitions-summary" rel="nofollow noopener noreferrer" target="_blank"&gt;univariateColorSize | API Reference | ArcGIS API for JavaScript 4.2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;colorAndSizeRendererCreator&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createContinuousRenderer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;params&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;response&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;// set generated renderer on the layer and add it to the map&lt;/SPAN&gt;
&amp;nbsp; povLyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;renderer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;renderer&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;povLyr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;// set the queried statistics and generated visual variable&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;// to the slider parameters&lt;/SPAN&gt;
&amp;nbsp; 
&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; sizeVV &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;size&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visualVariable&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; colorVV &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visualVariable&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; sliderParams &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; container&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"sliderDiv"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;statistics&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;// this is generated for you as well&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; visualVariables&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;sizeVV&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; colorVV&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; 
&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; slider &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;UnivariateColorSizeSlider&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sliderParams&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="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;/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;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The histogram is optional, but if you want to use that as well, then follow the example code you're looking at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short, you don't need visual variables on the default renderer on the layer for this to work. If you already have them, then you can use them without generating the renderer every time the app loads. in that case you could do something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&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; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; renderer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;renderer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;clone&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; sliderParams &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; container&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"sliderDiv"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; visualVariables&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; renderer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visualVariables
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//stats object generated from summaryStatistics()&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&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="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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the stats use:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-smartMapping-statistics-summaryStatistics.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-smartMapping-statistics-summaryStatistics.html" rel="nofollow noopener noreferrer" target="_blank"&gt;summaryStatistics | API Reference | ArcGIS API for JavaScript 4.2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you use createContinuousRenderer() then this is already done for you under the hood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;There must be a straightforward code example to set up a common slider scenario with size, color, field max/min values, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is about as straightforward as it gets. If the snippets on the description page are confusing, then take look at the code in the sandbox. That should provide more context as to where the visual variables and statistics are coming from. We can also look at reworking that description so it doesn't cause as much confusion. I'll be working on a blog post going into a little more depth on this topic. Will link to it when it goes live.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-2-how-exactly-to-set-up-visualvariables-to/m-p/583702#M54523</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2021-12-12T01:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI 4.2 How exactly to set up visualVariables to generate univariate continuous size and color visualization in 3D</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-2-how-exactly-to-set-up-visualvariables-to/m-p/583703#M54524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all these details! I did some investigating and it turns out I get this error when using the&amp;nbsp;"streets-relief-vector" basemap in my SceneView:&lt;/P&gt;&lt;P&gt;d {name: "size-visual-variable:insufficient-info", message: "Unable to find size scheme", details: undefined}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it works wonderfully if I use the "topo" basemap. Yes, this is very straightforward and love all the under the hood action here.&lt;/P&gt;&lt;P&gt;The only thing I would really want to change programmatically is the min and max symbol size (the cylinders). Is there a way to adjust those properties?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested this with all the basemap options and there are many this will not work with. Here are the results with their error messages:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"streets" - works great&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"satellite" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"hybrid" - works great&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"topo" - works great&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"gray" - works great&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"dark-gray" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"oceans" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"national-geographic" - works great&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"terrain" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"osm" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"dark-gray-vector" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"gray-vector" - init.js:308 [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"streets-vector" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"topo-vector" - [esri.views.SceneView] #pixelSizeAt() Scene view cannot be used before it is ready&lt;/P&gt;&lt;P&gt;"streets-night-vector" - d {name: "size-visual-variable:insufficient-info", message: "Unable to find size scheme", details: undefined}&lt;/P&gt;&lt;P&gt;"streets-relief-vector" - d {name: "size-visual-variable:insufficient-info", message: "Unable to find size scheme", details: undefined}&lt;/P&gt;&lt;P&gt;"streets-navigation-vector" - d {name: "size-visual-variable:insufficient-info", message: "Unable to find size scheme", details: undefined}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 13:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-2-how-exactly-to-set-up-visualvariables-to/m-p/583703#M54524</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2017-01-27T13:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI 4.2 How exactly to set up visualVariables to generate univariate continuous size and color visualization in 3D</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-2-how-exactly-to-set-up-visualvariables-to/m-p/583704#M54525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;The only thing I would really want to change programmatically is the min and max symbol size (the cylinders). Is there a way to adjust those properties?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The currently implementation uses the view to determine the min and max size so it varies depending on the scale of the view when the method is called.&amp;nbsp;We're working on improving this so it is more consistent for 3D object symbols despite the scale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you want to change the min and max sizes, you can do that manually without the smart mapping modules, using the size visual variable. The smart mapping modules don't have to be used to work with the slider widgets though they are convenient for getting the stats and histogram. Here's an example of how to override the sizes after getting back the default renderer:&amp;nbsp;&lt;A class="link-titled" href="https://jsbin.com/waweduxosa/edit?html,output" title="https://jsbin.com/waweduxosa/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember, these creator functions are all about giving you a good default, or starting point. You can visualize your data anyway you want to! But these modules help give you context if you're unfamiliar with your data or you want to allow others to explore it freely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll take a look at the basemap issues. Note that note all vector tile basemaps will work. Only ones that have an equivalent raster basemap will generate a renderer. The reason for this is because the styles for smart mapping were designed before vector tiles came into the API. This is an issue we're aware of and looking to fix. In the meantime you can use the basemap string id of the basemap that most closely resembles whatever you are using that may be unsupported.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-2-how-exactly-to-set-up-visualvariables-to/m-p/583704#M54525</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2017-01-27T17:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI 4.2 How exactly to set up visualVariables to generate univariate continuous size and color visualization in 3D</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-2-how-exactly-to-set-up-visualvariables-to/m-p/583705#M54526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for all this wonderful feedback and for that JS Bin link showing me how to override the sizes. Very helpful. Yes, I figured the view scale automatically determined the symbol size, just wanted to tweak it a bit. Looking forward to your blog article when it comes out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 19:58:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-2-how-exactly-to-set-up-visualvariables-to/m-p/583705#M54526</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2017-01-27T19:58:38Z</dc:date>
    </item>
  </channel>
</rss>

