<?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 How to add custom legend labels with UniqueValueInfos? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-add-custom-legend-labels-with/m-p/316530#M2015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-csv-projection"&gt;CSVLayer - Project points on the fly &lt;/A&gt;JavaScript API sample as a base for a web map that will use a web enabled CSV file and custom images for the symbology.&amp;nbsp; I am at a loss of how to add custom labels to the legend to replace the numbers that are the default for each image i supply.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2019 22:13:35 GMT</pubDate>
    <dc:creator>KelseyNovacek</dc:creator>
    <dc:date>2019-02-20T22:13:35Z</dc:date>
    <item>
      <title>How to add custom legend labels with UniqueValueInfos?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-add-custom-legend-labels-with/m-p/316530#M2015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-csv-projection"&gt;CSVLayer - Project points on the fly &lt;/A&gt;JavaScript API sample as a base for a web map that will use a web enabled CSV file and custom images for the symbology.&amp;nbsp; I am at a loss of how to add custom labels to the legend to replace the numbers that are the default for each image i supply.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2019 22:13:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-add-custom-legend-labels-with/m-p/316530#M2015</guid>
      <dc:creator>KelseyNovacek</dc:creator>
      <dc:date>2019-02-20T22:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add custom legend labels with UniqueValueInfos?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-add-custom-legend-labels-with/m-p/316531#M2016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got from ESRI to resolve my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the same example for reference :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At line 118 an array was added to store the values of the items in the legend I wish to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;For example: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Line 118:&amp;nbsp; var arr = ["cat", "apple", "dog", "yes", "pear"]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;At line 124 the returned value was changed to reference the array.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;Line 124:&amp;nbsp; value: arr&lt;I&gt;, // Category number&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;At line 68 the reference field was changed to reference the field in the CSV file whos values match the array values to be displayed in the legend.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: Times New Roman; "&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 16:11:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-add-custom-legend-labels-with/m-p/316531#M2016</guid>
      <dc:creator>KelseyNovacek</dc:creator>
      <dc:date>2019-02-22T16:11:53Z</dc:date>
    </item>
  </channel>
</rss>

