# How a multi-level pie chart works

I am trying to understand the details of a multi-level pie chart.

This Wikipedia example gives a picture of a Linux filesystem.

Here are some direct questions, but any further clarification is also welcome.

1. The inner gray circle is presumably the root directory '/'?
2. The subsequent concentric circle (containing the gray circle) contains three parts - do these represent the size (MB say) of three folders that are contained in the root directory?
3. Why does the first four (counting from the centre) parts of the green segment line up radially, whereas other parts do not?
4. What could the different colors represent?
• wiki.gnome.org/action/show/Apps/… – Moss Murderer Jul 27 '18 at 16:14
• @MossMurderer from link: 1. Could be any folder. 2. Yes 3. The first three green sections going outwards radially contain one folder each, and the last one contains two folders. I am guessing that the first three folders contains a folder that is equal to or larger than itself, but the penultimate outside folder which contains two folders, the sum of these two folder sizes are just slightly less than itself (the reason that the outermost green ring does not line up with the previous four)? Or have some files been deleted after the frame of the pie chart has been created? 4. Sub folders – Single Malt Jul 27 '18 at 18:05

4. Colors are only cosmetic. The hue reflects the angle of one of the edges of the wedge in a color wheel, and the darkness reflects the depth of the directory. For details, see the get_item_color function in the source file.