Device share is useful when deciding which layouts deserve testing, but only if the unit being counted is clear. A person may use both a phone and a laptop. Sessions can be assigned to one device class; unique people generally cannot be split that way without an additional rule.
This example therefore compares sessions, not people.
inner_radius is a geometric radius, not a percentage of the data. Supply it from the application's presentation settings and check that it leaves a readable ring at small sizes.
Keep the whole meaningful
Use a small set of exclusive categories and retain an unknown category rather than quietly dropping unclassified sessions. If the total is zero, render an empty state instead of implying a distribution exists.
Show counts and percentages outside the ring and test that the category sum matches the report total. When close comparisons matter, a ranked bar chart is easier to read than several similar arcs. The gallery image is not a claim about the sample data supplied by your application.