Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 1.87 KB

File metadata and controls

23 lines (13 loc) · 1.87 KB

Creating a Pyramid Chart for Global Wealth Distribution in 2021

Description

A pyramid chart provides a proportional visualization of a total in hierarchies. It is a single series chart without an axis. The data is shown as percentages of a total, where the sum of the parts makes up the whole.

Mode

The SfPyramidChart allows you to render a chart in a linear or surface mode by using the Mode property. In the Linear mode, the height of the pyramid segment is based on the y-value. In the Surface mode, the area of the pyramid segment is based on the y-value. By default, the Mode property is set to linear.

GapRatio

The GapRatio property is used to change the space between two segments. The default value of the GapRatio property is 0, and its value ranges from 0 to 1.

This sample shows how to visualize a comparison of global wealth distribution in 2021 using a .NET MAUI Pyramid Chart. This comparison will help us understand how wealth is distributed among the population and the existing inequalities.

Demo

Troubleshooting

Path too long exception

If you are facing a path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.

For a step by step procedure, refer to the Global Wealth Pyramid blog.