<?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: Popup Chart Assistance in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/popup-chart-assistance/m-p/1312806#M53608</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I figured it out! I think this may have to do with the June update which asks for numerical values when configuring a chart, but I'm not totally sure. I adjusted line 7 to call a numerical value, and the chart works! I hope this helps someone.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;for (var f in AADT) {
        chartValues[Text(f.Year,'0000')] = Number(f.Mean_ADT,'###,###')&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 27 Jul 2023 20:11:49 GMT</pubDate>
    <dc:creator>bsklaohfl</dc:creator>
    <dc:date>2023-07-27T20:11:49Z</dc:date>
    <item>
      <title>Popup Chart Assistance</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/popup-chart-assistance/m-p/1312539#M53592</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It seems my Arcade Script to create a pop up line chart has broken. The chart is visible in the popup, however no data populates. I am stumped because it was working fine a few weeks ago. Could someone please look at my code and help me troubleshoot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;LI-CODE lang="c"&gt;		// Set variable to MRNLINK IDS
		var Road = $feature.MRNLINKID
		// Set variable to related table (notice FeatureSetByRelationshipName)
		var Table = FeatureSetByRelationshipName($feature, "ADT_Data_Merge", ['Mean_ADT', 'Year'], false)
		// filter through table, matching the table's STATIONID with road variable)
		var AADT = OrderBy(Filter(Table, 'StationID = @Road'), 'Year')
		// this was copied and pasted from AGO community post, I only changed certain variables
		var chartValues = {}
		var chartNames = []
		for (var f in AADT) {
		        chartValues[Text(f.Year,'0000')] = Text(f.Mean_ADT,'###,###')
		        Push(chartNames, f.Year)
		    }
		return {
		    type: 'media',
		    title : 'AADT by Year',
		    description : 'Annual average daily traffic by year for this road',
		    attributes : chartValues,  // replace this dictionary with your own key-value pairs,
		    mediaInfos: [{
		        type : 'linechart', //linechart | barchart | piechart | columnchart
		        //title : '',
		        //caption : '',
		        altText : 'line chart showing traffic counts by year', //altText will be read by screen readers
		        value : {
		          fields: chartNames,  // choose what attributes to use in the chart
		          //normalizeField : '',  // the name of the attribute to normalize by or value 
		        }	  
		      }]
		  }&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Brooke&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 13:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/popup-chart-assistance/m-p/1312539#M53592</guid>
      <dc:creator>bsklaohfl</dc:creator>
      <dc:date>2023-07-27T13:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Chart Assistance</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/popup-chart-assistance/m-p/1312806#M53608</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I figured it out! I think this may have to do with the June update which asks for numerical values when configuring a chart, but I'm not totally sure. I adjusted line 7 to call a numerical value, and the chart works! I hope this helps someone.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;for (var f in AADT) {
        chartValues[Text(f.Year,'0000')] = Number(f.Mean_ADT,'###,###')&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Jul 2023 20:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/popup-chart-assistance/m-p/1312806#M53608</guid>
      <dc:creator>bsklaohfl</dc:creator>
      <dc:date>2023-07-27T20:11:49Z</dc:date>
    </item>
  </channel>
</rss>

