<?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: Precision of labels in GenerateRendererParameters in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675103#M62877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that if you remove the "precision" parameter than at least in my case the labels now show up "properly".&amp;nbsp; I did have to add the "formatLabel" property to the GenerateRendererParameters object, however.&amp;nbsp; Now it would be great if I could get the image below to show up with Percentage values.&amp;nbsp; i.e. "2.3%" rather than "0.023".&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="2726" alt="legend2.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/2726_legend2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1406657718622333 jive_text_macro" jivemacro_uid="_1406657718622333" modifiedtitle="true"&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;var params = new GenerateRendererParameters();&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;params.classificationDefinition = classDef;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;//params.precision = 5;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;params.formatLabel = true;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;var generateRenderer = new GenerateRendererTask(dynamicUrl, { "source": layerSource });&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;generateRenderer.execute(params, this.applyRenderer, this.errorHandler);&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have suggestions for formatting percent values in a legend label?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2014 18:12:21 GMT</pubDate>
    <dc:creator>AndrewMurdoch</dc:creator>
    <dc:date>2014-07-29T18:12:21Z</dc:date>
    <item>
      <title>Precision of labels in GenerateRendererParameters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675101#M62875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a generateRendererTask and generateRendererParameters defined and I want to be able to format my labels to only have 2 decimal places.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp; function generateClassBreaks(c1, c2) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var classDef = new ClassBreaksDefinition();
&amp;nbsp;&amp;nbsp;&amp;nbsp; classDef.classificationField = classBreakField;
&amp;nbsp;&amp;nbsp;&amp;nbsp; classDef.classificationMethod = "quantile";
&amp;nbsp;&amp;nbsp;&amp;nbsp; classDef.breakCount = interval;&amp;nbsp; //defined as 5

&amp;nbsp;&amp;nbsp;&amp;nbsp; var colorRamp = new AlgorithmicColorRamp();
&amp;nbsp;&amp;nbsp;&amp;nbsp; colorRamp.fromColor = new Color.fromHex(c1);
&amp;nbsp;&amp;nbsp;&amp;nbsp; colorRamp.toColor = new Color.fromHex(c2);
&amp;nbsp;&amp;nbsp;&amp;nbsp; colorRamp.algorithm = "hsv"; // options are:&amp;nbsp; "cie-lab", "hsv", "lab-lch"
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; classDef.baseSymbol = new SimpleFillSymbol("solid", null, null);
&amp;nbsp; classDef.baseSymbol = defaultSymbol;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; classDef.colorRamp = colorRamp;

&amp;nbsp;&amp;nbsp;&amp;nbsp; var params = new GenerateRendererParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp; params.classificationDefinition = classDef;
&amp;nbsp;&amp;nbsp;&amp;nbsp; params.precision = 2;
&amp;nbsp;&amp;nbsp;&amp;nbsp; params.formatLabel = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var clauseInput = classDef.classificationField;
&amp;nbsp;&amp;nbsp;&amp;nbsp; params.where= clauseInput + " &amp;gt; 0";
&amp;nbsp;&amp;nbsp;&amp;nbsp; var generateRenderer = new GenerateRendererTask(myLayer.url+"/0");
&amp;nbsp;&amp;nbsp;&amp;nbsp; generateRenderer.on("error", taskErrorHandler);
&amp;nbsp;&amp;nbsp;&amp;nbsp; generateRenderer.execute(params, applyRenderer);
&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is then used to generate my legend.&amp;nbsp; In my legend, the values are not rounded to two decimal places like I expected.&amp;nbsp; Instead they round to a whole number.&amp;nbsp; They're this way because that's how the label got generated from the generateRendererTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have worked around this by creating my own labels using the minValue and maxValue for each class, but I don't feel like I should have had to do this.&amp;nbsp; I read in the API reference that precision is only for ClassBreakRenderers, but it seems like should be inclusive of the tools that let you generate those renderers dynamically.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems like a bug to me.&amp;nbsp; I didn't get an error defining a precision parameter, just this unintended format.&amp;nbsp; Has anyone else had a similar experience?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 18:48:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675101#M62875</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-07-02T18:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Precision of labels in GenerateRendererParameters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675102#M62876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running into a similar problem where I have a ClassBreaksDefinition set for a GenerateRendererTask but the labels only show integer values.&amp;nbsp; This is a problem because the data is a percentage decimal value (ex. 0.0288).&amp;nbsp; I've similarly tried to set the "precision" parameter of the GenerateRendererParameters object with no success.&amp;nbsp; The classes are constructed accurately (I think) for the map display, but the legend presents five classes like the image below:&lt;IMG alt="legend.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/2692_legend.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I'm also going to investigate the solution proposed in this post:&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/340423?sr=search&amp;amp;searchId=d91d043f-1bc6-4c40-ae1d-b45426e549fa&amp;amp;searchIndex=19#340423" title="https://community.esri.com/message/340423?sr=search&amp;amp;searchId=d91d043f-1bc6-4c40-ae1d-b45426e549fa&amp;amp;searchIndex=19#340423"&gt;https://community.esri.com/message/340423?sr=search&amp;amp;searchId=d91d043f-1bc6-4c40-ae1d-b45426e549fa&amp;amp;searchIndex=19#340423&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;which calls for modifying the Legend dijit I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does seem like the "precision" parameter of the GenerateRendererParameters object doesn't seem to work properly.&amp;nbsp; It would be nice if an ESRI rep would weigh in on this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 17:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675102#M62876</guid>
      <dc:creator>AndrewMurdoch</dc:creator>
      <dc:date>2014-07-29T17:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Precision of labels in GenerateRendererParameters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675103#M62877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that if you remove the "precision" parameter than at least in my case the labels now show up "properly".&amp;nbsp; I did have to add the "formatLabel" property to the GenerateRendererParameters object, however.&amp;nbsp; Now it would be great if I could get the image below to show up with Percentage values.&amp;nbsp; i.e. "2.3%" rather than "0.023".&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="2726" alt="legend2.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/2726_legend2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1406657718622333 jive_text_macro" jivemacro_uid="_1406657718622333" modifiedtitle="true"&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;var params = new GenerateRendererParameters();&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;params.classificationDefinition = classDef;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;//params.precision = 5;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;params.formatLabel = true;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;var generateRenderer = new GenerateRendererTask(dynamicUrl, { "source": layerSource });&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;generateRenderer.execute(params, this.applyRenderer, this.errorHandler);&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have suggestions for formatting percent values in a legend label?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 18:12:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675103#M62877</guid>
      <dc:creator>AndrewMurdoch</dc:creator>
      <dc:date>2014-07-29T18:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Precision of labels in GenerateRendererParameters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675104#M62878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was specifically trying to get to 2, so leaving the precision parameters out wasn't a solution.&amp;nbsp; The only way I've been able to manipulate the legend the way I wanted was to create it from scratch, making my own rectangles, text etc. I am putting the formatted label string into an array, labelArray, and then pulling them out in the createLegend function.&amp;nbsp; You ought to be able to build a formatLabel function that takes itm.minValue and itm.maxValue as input to format it the way you want before it goes into labelArray.&amp;nbsp; I pretty much had to do this anyway because I wanted a value for "No Data' and the ability to add some extra legend notes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Continuing with the functions I have earlier, here's the results handler for the generateClassBreaks function.&amp;nbsp; I go on to generate the legend manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14066581866427526" jivemacro_uid="_14066581866427526" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp; function applyRenderer(renderer) {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var optionsArray = [];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; renderer.defaultSymbol = defaultSymbol;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var drawingOptions = new LayerDrawingOptions();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; drawingOptions.renderer = renderer; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; optionsArray[0] = drawingOptions;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; agLayer.setLayerDrawingOptions(optionsArray);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; getInfoFromRender(renderer);//creates arrays the legend will use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; createLegend();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; function getInfoFromRender(renderer){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbolArray.length = 0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelArray.length = 0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrayUtils.forEach (renderer.infos, function (itm) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbolArray.push(itm.symbol); &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var val = itm.minValue + " - " + itm.maxValue;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // labelArray.push(itm.label);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelArray.push(val);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;// create legend based on symbology defined in code&lt;/P&gt;
&lt;P&gt; function createLegend() {&lt;/P&gt;
&lt;P&gt; //&amp;nbsp;&amp;nbsp; var divLegend = dom.byId("legendDiv");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; domConstruct.empty("legendDiv");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var note = dom.byId('mapHeader').innerHTML;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //change the size of the surface as needed, example: if labels are wider or there are more than 5 intervals&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var legendSurface = gfx.createSurface(dom.byId("legendDiv"), 250, 200);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var group = legendSurface.createGroup();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yPos = 20;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var descriptors, legendText;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //symbolArray created as part of the generateRendererTask&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrayUtils.forEach(symbolArray, function (itm, idx){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; descriptors = jsonUtils.getShapeDescriptors(itm);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group.createRect({x: 10, y: yPos, width: 30, height: 20 }).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setFill(descriptors.fill).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setStroke(descriptors.stroke);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //labelArray created as part of teh generateRendererTask&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legendText = group.createText({ x:45, y:yPos + 15, text:labelArray[idx], align:"start"}).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setFont({ family:"Arial", size:"10pt", weight:"normal" }).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setFill("#000000"); &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yPos = yPos + 25;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // when data value = -999, symbolize as Data Not Available&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group.createRect({x: 10, y: yPos, width: 30, height: 20 }).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setFill(jsonUtils.getShapeDescriptors(defaultSymbol).fill).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setStroke(jsonUtils.getShapeDescriptors(defaultSymbol).stroke);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legendText = group.createText({ x:45, y:yPos + 15, text:"Data Not Available", align:"start"}).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setFont({ family:"Arial", size:"10pt", weight:"normal" }).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setFill("#0000"); &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yPos = yPos + 25;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dom.byId("legendTitle").innerHTML = note +"&amp;lt;br/&amp;gt;&amp;lt;i&amp;gt;Percent Total Area Treated&amp;lt;/i&amp;gt; " ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; registry.byId('legendPane').set("open", true);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 18:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675104#M62878</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-07-29T18:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Precision of labels in GenerateRendererParameters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675105#M62879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great work here, Tracy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share the rest of your HTML?&amp;nbsp; I am having trouble with the last line in the code shown above.&amp;nbsp; Do I need a dijit widget?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 18:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675105#M62879</guid>
      <dc:creator>ChristopherJohnson1</dc:creator>
      <dc:date>2015-09-21T18:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Precision of labels in GenerateRendererParameters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675106#M62880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This chunk of code would have been just a piece of functionality that I rolled into a larger project.&amp;nbsp; The legendPane is a TitlePane that was nested within a dijit/layout/ContentPane.&amp;nbsp; I often use them as a method of organizing my tools when I have too many to fit into my sidebar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that functionality is still part of this project: &lt;A href="https://ogi.oa.mo.gov/DHSS/EPHT_agChemical/index.html" title="https://ogi.oa.mo.gov/DHSS/EPHT_agChemical/index.html"&gt;Application of Agriculture Chemicals&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 19:37:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675106#M62880</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-09-22T19:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Precision of labels in GenerateRendererParameters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675107#M62881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Tracy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 19:40:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675107#M62881</guid>
      <dc:creator>ChristopherJohnson1</dc:creator>
      <dc:date>2015-09-22T19:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Precision of labels in GenerateRendererParameters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675108#M62882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there. &lt;/P&gt;&lt;P&gt;I'm sure it's not recommended, but I was able to fix this by editing line in the GenerateRendererTask.js in our hosted 3.14 library.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/130413_Capture.JPG" style="width: 620px; height: 166px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 19:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675108#M62882</guid>
      <dc:creator>Elizabeth_R_Jarvie</dc:creator>
      <dc:date>2015-10-09T19:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Precision of labels in GenerateRendererParameters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675109#M62883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added params.unitLabel = "%"; under &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; params = &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; GenerateRendererParameters();&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: inherit; color: black; font-weight: inherit; font-size: 9pt !important; font-style: inherit;"&gt;and it puts a % at the end of the line, though the first number in the range doesn't get one.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 21:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/precision-of-labels-in-generaterendererparameters/m-p/675109#M62883</guid>
      <dc:creator>ChelseaRozek</dc:creator>
      <dc:date>2016-02-10T21:49:26Z</dc:date>
    </item>
  </channel>
</rss>

