Using chart controls
When we are working with data in our apps, there are three basic chart controls that we can use to create a simple visualization:
- Column (or bar) charts
- Line charts
- Pie charts
The chart controls that we use within Power Apps are designed to take very simple data structures and create a graphical representation of them. When we talk about it being simple, we effectively want the data source to contain a textual column that can be used as the label and then at least one numerical field that can be used to show the data.
As an example, we could create a simple collection that will contain some data for us to start visualizing. We could use a button to populate some data with the OnSelect formula as follows:
Clear(colData);
Collect(colData,
{ Country: "China", Population: 1439323776, 'Land Area': 9388211 },
{ Country: "India", Population: 1380004385, 'Land Area': 2973190 },
...