Select to view content in your preferred language

Create a Chart within a List Element using Arcade

393
1
10-15-2022 07:33 AM
SpatialSean
Regular Contributor

Can Arcade be used to create a chart within a list element, such as a bar chart?  What would that code look like?

0 Kudos
1 Reply
jcarlson
MVP Esteemed Contributor

Yes, and "it depends".

What do you want the charts to look like? As long as all the data fields are just attributes of each record, you can use those fields to populate HTML tags. You could also use the Advanced Formatting option to dynamically create additional attributes. So, for instance, you could have a <div> element like this:

<div style="width:{some_field}; height:{some_other_field}; background-color:{expression/color};"></div>

 

- Josh Carlson
Kendall County GIS
0 Kudos