Select to view content in your preferred language

Arcade Line Chart Pop-up with multiple series

99
0
12-11-2024 08:56 AM
Labels (3)
C_McNamara
Occasional 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
0 Replies