You achieve this by nesting color-coded rectangles inside friends, calculated to reflect their own share associated with the full