Slice geometry
The tool sums every entered value, then gives each slice the angle that value's share of the sum earns: value divided by total, times 360 degrees. Slices are laid out around the circle in the order the data was entered, so reordering the input changes the chart's look but not its proportions. Donut mode keeps the same geometry and simply cuts a hole out of the middle.