<?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: Print Widget and Renderers with Functions in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555011#M51753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure I understand what's wrong (regarding feature collection vs graphics layer) and what I can do to fix it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, have you noticed that if you replace 'false' with 'defaultSymbol' on the class breaks renderer, the Print operation fails? (might that have something to do with the first problem?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2013 14:44:52 GMT</pubDate>
    <dc:creator>DanielTrone</dc:creator>
    <dc:date>2013-05-13T14:44:52Z</dc:date>
    <item>
      <title>Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555007#M51749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the print widget and have noticed an unusual issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use a function-formula in the renderer instead of a simple variable, the legend does not display normally, but instead displays only the symbols used for that area and the label 'Override' (see attachment).&amp;nbsp; Is this a bug? (Also see code snippet below).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, also when I am using a function formula in the renderer, and when I use a defaultSymbol instead of setting the first parameter of ClassBreaksRenderer to false, the print process will fail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thirdly, when I use a renderer with a simple variable, and no default symbol, it works, but my transparency is always opaque. (At least in the first situation, with the Override labels, the transparency is correct).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;CODE&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (themevar === 'PCT_OTH_R') {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; renderer = new esri.renderer.ClassBreaksRenderer(false, function (graphic) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ((graphic.attributes.OTHER_NH / graphic.attributes.POP0711) * 100);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; renderer.addBreak({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; minValue: 0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxValue: 2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol: new esri.symbol.SimpleFillSymbol().setColor(new dojo.Color([239, 237, 245, 0.5])),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: "&amp;lt; 2%"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; renderer.addBreak({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; minValue: 2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxValue: 5,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol: new esri.symbol.SimpleFillSymbol().setColor(new dojo.Color([188, 189, 220, 0.5])),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: "2% to 5%"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; renderer.addBreak({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; minValue: 5,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxValue: Infinity,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol: new esri.symbol.SimpleFillSymbol().setColor(new dojo.Color([117, 107, 177, 0.5])),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: "&amp;gt; 5%"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; $('#titleleg').html('PCT Other');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/CODE&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a link to the working application to see the print behavior in action. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dola.colorado.gov/gis-cms/sites/default/files/html/acs0711_11.html"&gt;http://dola.colorado.gov/gis-cms/sites/default/files/html/acs0711_11.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here is the fiddle (sorry its so long, but still 1/5 size of original project).&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/DanielTrone/e2yse/"&gt;http://jsfiddle.net/DanielTrone/e2yse/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 16:54:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555007#M51749</guid>
      <dc:creator>DanielTrone</dc:creator>
      <dc:date>2013-05-10T16:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555008#M51750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;based on my reading of the export webmap &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/gp_exportwebmaptask.html"&gt;spec&lt;/A&gt;&lt;SPAN&gt; and a look at your own request, this is happening because you are currently passing a collection of graphics whose symbology is defined feature by feature, rather than in a class breaks renderer (defined within drawingInfo).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you're able to further whittle down your fiddle to use a single layer (and actually give an opportunity to redefine symbology based on population and race), it would be easier to see what your options are.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 18:04:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555008#M51750</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-05-10T18:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555009#M51751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for taking the time to look at this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have significantly cleaned up the fiddle down to only the essential elements. &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/DanielTrone/e2yse/1/"&gt;http://jsfiddle.net/DanielTrone/e2yse/1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note how the legend works for 'Median HH Income' (simple variable instead of a function, no default symbol) and how it doesnt work at all for 'Per Capita Income' (uses a default symbol). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also note how 'Age less than 18' has the Override label text (uses a function instead of a simple variable).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And note how the transparency is wrong on 'Median HH Income', but correct on 'Age less than 18'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 19:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555009#M51751</guid>
      <dc:creator>DanielTrone</dc:creator>
      <dc:date>2013-05-10T19:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555010#M51752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i took your code and wrote up a &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/jagravois/A6cuH/" rel="nofollow noopener noreferrer" target="_blank"&gt;really simplified sample&lt;/A&gt;&lt;SPAN&gt; where the symbology is actually passed to ArcGIS Server with a class breaks renderer defined for the layer (instead of defining symbols feature by feature).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the only difference between my app and yours is that I am referencing a hardcoded featureLayer and you are pulling your layer from a webmap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i didn't realize till just now, but your own web_map_json defines the layer as a "featureCollection".&amp;nbsp; i wonder why the hosted feature service ends up acting like a graphics layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
"id" : "TractACSv4_4105",
&amp;nbsp;&amp;nbsp; "opacity" : 1,
&amp;nbsp;&amp;nbsp; "minScale" : 0,
&amp;nbsp;&amp;nbsp; "maxScale" : 0,
&amp;nbsp;&amp;nbsp; "featureCollection" : {
&amp;nbsp;&amp;nbsp;&amp;nbsp; "layers" : [{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "layerDefinition" : {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "TractACSv4",
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:58:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555010#M51752</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-11T23:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555011#M51753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure I understand what's wrong (regarding feature collection vs graphics layer) and what I can do to fix it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, have you noticed that if you replace 'false' with 'defaultSymbol' on the class breaks renderer, the Print operation fails? (might that have something to do with the first problem?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 14:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555011#M51753</guid>
      <dc:creator>DanielTrone</dc:creator>
      <dc:date>2013-05-13T14:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555012#M51754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i took the time to adapt my simplified sample to pull your webmap and im still not seeing the same behavior as in your own application&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/jagravois/A6cuH/1/"&gt;http://jsfiddle.net/jagravois/A6cuH/1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with regard to passing a default symbol in a class breaks renderer in the webmap json, i think im seeing the same thing you are, and will work on putting together something even more straightforward to show the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 21:09:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555012#M51754</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-05-14T21:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555013#M51755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;MED_AGE may not be the best example to use, because it is used directly in the Class Breaks Renderer. (though note how the transparency is messed up anyway).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I took your fiddle and changed the Variable to AGE65PLUS, and used a calculated value in as the second parameter in the Class Breaks Renderer.&amp;nbsp; You should be able to see the legend problem here.&amp;nbsp; (Legend says Override 1, Override 2.&amp;nbsp; Transparency is correct, though).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/DanielTrone/xrGPh/2/"&gt;http://jsfiddle.net/DanielTrone/xrGPh/2/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 20:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555013#M51755</guid>
      <dc:creator>DanielTrone</dc:creator>
      <dc:date>2013-05-15T20:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555014#M51756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for pointing that out.&amp;nbsp; now i FINALLY understand what is going on.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in this situation you are calculating a new value to use for your class breaks renderer on the fly without designating a new attribute column to store the value you calculated. (i think you already know this)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the collection of graphics have to be sent to the server feature by feature, with a symbol defined (not renderer, which supports a label), rather than having a true class breaks renderer defined for the feature layer.&amp;nbsp; If the field was present on the server we could just describe the renderer as class breaks and let ArcGIS Server draw things up on the fly).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i tested actually adding a new field to the graphics layer based on this value instead of relying on a function within the renderer, but this doesn't work either (because when we send the new print request we now assume a field is present in the service that isn't actually there).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function addNewAttribute() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myLayer = app.map.getLayer("CountyACSv4_5756");
&amp;nbsp; myLayer.fields.push({"alias": "PERCENTOLD",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "editable": false,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "length" : null,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "nullable" : true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "PERCENTOLD",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type" : "esriFieldTypeString"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp; dojo.forEach(myLayer.graphics, function (graphic) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.attributes.PERCENTOLD = (graphic.attributes.AGE65PLUS / graphic.attributes.POP0711 * 100);
&amp;nbsp; });
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;unfortunately, i don't know how of a good way to work around this problem (other than ensuring that you have fields present in the data for values you need to render by.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555014#M51756</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-11T23:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555015#M51757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As far as not being able to include a legend for calculated values - that's too bad.&amp;nbsp; I may have to restructure the data to work around this limitation - but as it was, I was already running up against the 256 column limit in shapefiles.&amp;nbsp; (The American Community Survey is a huge, huge dataset).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One last point, however,&amp;nbsp; what's going on with the layer transparency in the printouts?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) In my fiddle,&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/DanielTrone/xrGPh/2/"&gt;http://jsfiddle.net/DanielTrone/xrGPh/2/&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; the transparency displays correctly in the printout; the basemap can be seen underneath the data layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) In your fiddle, &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/jagravois/A6cuH/"&gt;http://jsfiddle.net/jagravois/A6cuH/&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; where we use the MED_AGE statistic directly, the transparency of the layer in the printout does not respect the transparency defined in the class breaks renderer.&amp;nbsp; It is completely opaque.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea what's happening here, so I can seek to get the correct behavoir (transparency of example 1, with legend of example 2).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 14:28:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555015#M51757</guid>
      <dc:creator>DanielTrone</dc:creator>
      <dc:date>2013-05-16T14:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555016#M51758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;sorry for the delayed reply.&amp;nbsp; i did some more testing and confirmed that this is a REST problem (as opposed to a problem in the JS API).&amp;nbsp; it seems that currently ArcGIS Server does not honor transparency defined as an alpha value within a RGB color symbol for feature service layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can see this problem by removing the .TXT extension from the attached .webmap file (which has identical contents to the webmap JSON we pass to ArcGIS Server when printing) and dragging and dropping itdirectly into ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
"symbol" : {
&amp;nbsp;&amp;nbsp;&amp;nbsp; "color" : [0, 255, 0, 128], //128 (or 50% transparency) is replaced by 255
&amp;nbsp;&amp;nbsp;&amp;nbsp; "outline" : {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "color" : [0, 0, 0, 128],&amp;nbsp; //128 (or 50% transparency) is replaced by 255
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "width" : 2,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type" : "esriSLS",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "style" : "esriSLSSolid"
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp; "type" : "esriSFS",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "style" : "esriSFSSolid"
},
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;even though an alpha transparency of 128 is specified for the symbol fill color, the layer is completely opaque in ArcMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]25482[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;since your sample app passes a collection of graphics instead of a feature service layer, you get around this limitation (but encounter another).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ive asked the developers to update the Export Web Map Spec to acknowledge the limitation i found.&amp;nbsp; sorry for the inconvenience.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555016#M51758</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-11T23:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555017#M51759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the update.&amp;nbsp; It's good to know that it's not necessarily anything I'm doing wrong.&amp;nbsp; I've never had any formal javascript education, so sometimes I just assume my problems are a result of subtleties that I don't yet understand.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FWIW, I found an easy workaround to this problem via CSS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; #legendDiv path{
&amp;nbsp;&amp;nbsp;&amp;nbsp; fill-opacity:0.6 !important;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps someone else out there!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:58:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555017#M51759</guid>
      <dc:creator>DanielTrone</dc:creator>
      <dc:date>2021-12-11T23:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555018#M51760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having the exact same problem - a feature layer with a function renderer. The legend appears fine with the Javascript API. When I try to print with the Print Task, the colours look fine (although not in correct order) but the name next to the symbol patch is replaced with the word "Override". In my case, the feature layer service on the server cannot access the data from which the renderer is created, since a) they are organized as numerous files not in a database and b) the algorithm that the break values are calculated runs in the browser (in javascript).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was thinking about creating a class break and assign it temporarily to the feature layer, but I understand that access to data on the server is critical. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any alternate solutions to this problem?&amp;nbsp; W&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 13:05:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555018#M51760</guid>
      <dc:creator>ChrisVradis</dc:creator>
      <dc:date>2013-12-30T13:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555019#M51761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, any idea if a fix is in the works for this?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;sorry for the delayed reply.&amp;nbsp; i did some more testing and confirmed that this is a REST problem (as opposed to a problem in the JS API).&amp;nbsp; it seems that currently ArcGIS Server does not honor transparency defined as an alpha value within a RGB color symbol for feature service layers.&lt;BR /&gt;&lt;BR /&gt;you can see this problem by removing the .TXT extension from the attached .webmap file (which has identical contents to the webmap JSON we pass to ArcGIS Server when printing) and dragging and dropping itdirectly into ArcMap.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
"symbol" : {
&amp;nbsp;&amp;nbsp;&amp;nbsp; "color" : [0, 255, 0, 128], //128 (or 50% transparency) is replaced by 255
&amp;nbsp;&amp;nbsp;&amp;nbsp; "outline" : {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "color" : [0, 0, 0, 128],&amp;nbsp; //128 (or 50% transparency) is replaced by 255
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "width" : 2,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type" : "esriSLS",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "style" : "esriSLSSolid"
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp; "type" : "esriSFS",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "style" : "esriSFSSolid"
},
&lt;/PRE&gt;&lt;BR /&gt;even though an alpha transparency of 128 is specified for the symbol fill color, the layer is completely opaque in ArcMap&lt;BR /&gt;&lt;BR /&gt;[ATTACH=CONFIG]25482[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;since your sample app passes a collection of graphics instead of a feature service layer, you get around this limitation (but encounter another).&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;ive asked the developers to update the Export Web Map Spec to acknowledge the limitation i found.&amp;nbsp; sorry for the inconvenience.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555019#M51761</guid>
      <dc:creator>BillLotz</dc:creator>
      <dc:date>2021-12-11T23:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555020#M51762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bill,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is unfortunately still considered a known limit.&amp;nbsp; i went ahead and logged an issue requesting that it be revisited in the future on your behalf.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[NIM099543: Add support for transparency in color's alpha value when printing feature layers.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry for the inconvenience.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 15:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555020#M51762</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-03-04T15:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555021#M51763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Bill,&lt;BR /&gt;&lt;BR /&gt;this is unfortunately still considered a known limit.&amp;nbsp; i went ahead and logged an issue requesting that it be revisited in the future on your behalf.&lt;BR /&gt;&lt;BR /&gt;[NIM099543: Add support for transparency in color's alpha value when printing feature layers.]&lt;BR /&gt;&lt;BR /&gt;sorry for the inconvenience.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. For some reason I thought this was fixed in 10.2.2, but I guess it isn't.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 18:59:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555021#M51763</guid>
      <dc:creator>BillLotz</dc:creator>
      <dc:date>2014-06-23T18:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555022#M51764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a similar problem - we have an application that is joining dynamic JSON data to a map service by a unique ID shared between the JSON dataset and the map service... everything works brilliantly in our application, although we ended-up creating a custom breaks function; however, when we "print" the map using the default template, the LegendLayer passed to the server ends-up overriding the break labels rendering in the application with "override 1", "override 2", etc., like what is seen in Daniel's attachment (&lt;A _jive_internal="true" href="https://community.esri.com/servlet/JiveServlet/download/102531-14218/exOverride.pdf" style="font-size: 12px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433; background-color: #fdfdfd;"&gt;exOverride.pdf&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resolution, it seems from John Gravois' previous response, is to ensure the map service contains the field/data... unfortunately, this isn't an option for us. Has anyone had success with a workaround? My initial thought was to create a custom template where we could send an HTML object from the client-side (the object being the legend) - I haven't come across supporting documentation yet to pursue this... we are currently using the default print template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 19:38:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555022#M51764</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-02-24T19:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555023#M51765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same issue here...UniqueValueRenderer with a function. Plopping a client-side legend into the print layout would be very handy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long-shot&lt;SPAN style="line-height: 1.5;"&gt; but, in the &lt;A href="https://developers.arcgis.com/javascript/jsapi/printtemplate-amd.html"&gt;Print Template&lt;/A&gt; task the API can accept 'customTextElements' in the layout options. Is there some way to draw SVG and labels that could get put into a snapshot and inserted as png into the print output?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 19:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555023#M51765</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-08-04T19:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget and Renderers with Functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555024#M51766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...coming up on 5 years and API version 4.6 still shows "Override 1" in the PDF print task output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any fix, or even a work around?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any acknowledgement this is a bug, or a correction if not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 00:14:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-and-renderers-with-functions/m-p/555024#M51766</guid>
      <dc:creator>davetinkle</dc:creator>
      <dc:date>2018-01-24T00:14:54Z</dc:date>
    </item>
  </channel>
</rss>

