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
}
}]
}
Hello, did you solve this issue?
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).