Select to view content in your preferred language

Arcade Line Chart Pop-up with multiple series

459
2
12-11-2024 08:56 AM
Labels (3)
C_McNamara
Regular Contributor

Hello!

Is it possible to create a multi-series line chart in AGOL Pop-ups using Arcade? I have 2 home value Fields for each Year (2000-2024). One field is the actual price (Actual_2000) and the other is inflation-adjusted (Inflated_2000).

Right now, I am building an arcade expression to make a custom line chart but am wondering if it is possible to create two lines, one series representing the Actual price and the other, Inflated.

Let me know if you have any suggestions. Thank you!

Below is my current arcade expression:

 

 

 

 

 

return {
    type: 'media',
    title : 'Home Value',
    attributes : {yr2000 : Round($feature.ACTUAL_DATE_9_30_2000,0), yr2001 : Round($feature.ACTUAL_DATE_9_30_2001,0), yr2003 : Round($feature.ACTUAL_DATE_9_30_2002,0)},  // replace this dictionary with your own key-value pairs
    mediaInfos: [{
        type : 'linechart', //linechart | barchart | piechart | columnchart
        title : 'The title for the chart in the element',
        // caption : 'Optional caption',
        altText : '', // altText will be read by screen readers
        value : {
          fields: ["yr2000", "yr2001", "yr2003"],  // choose what attributes to use in the chart
          //normalizeField : '',  // the name of the attribute to normalize by or value 
        }
}]
  }

 

0 Kudos
2 Replies
DeepakSatheesan2025
New Contributor

Hello, did you solve this issue?

0 Kudos
C_McNamara
Regular Contributor

Hi,

I ended up republishing a zip code layer with a standalone table along with it. The table had 20,000 records associated with 80+ zip code polygons with a category field (Actual v. Inflated) and used that to group my features. This allowed me to create two lines in a series (see image).

C_McNamara_0-1744033873566.png

 

0 Kudos