Select to view content in your preferred language

Bar Chart widget: How do I divide in categories according to a Field

718
2
02-23-2024 06:34 AM
Labels (1)
FrancescoCotana
Occasional Contributor

hello. I have a chart widget that has on the x axis, years, while on the y axis the number of people. I want my chart widget to have different colors according to the field "country" of my database. I want it to look like the picture attached. Instead at the moment all columns are the same color. 

Following are firther details of my chart:
Data: csv feature hosted file
Chart type: Bar chart
Data: by group
Category field: year (numbers)
Statistics: count
Sort by: category
maximum categories: /
Series
Stacking: stacked
etc.

Where can I select the other field to categorize my data? thank you

0 Kudos
2 Replies
TimLohnes1
Regular Contributor

I just got stuck on this and gave up. I don't think it is possible. See here where people are requesting it, https://community.esri.com/t5/arcgis-experience-builder-ideas/allow-bar-chart-custom-color-by-value-...

You can do it in Map Viewer. In fact it picks up the symbology from the map automatically. However I haven't seen any way to use the Map Viewer charts.

In dashboards, you can create custom color schemes.

 

WeiYing1
Esri Regular Contributor

Hi @FrancescoCotana ,

Unfortunately custom color schema for single column has not yet been supported. Now you can only customize color for each series. You can try the new "Split by field" option to split the categories to multiple series and define a color for each series.