Interface: PartLabelOptions
Labels of a series whose marks read as parts of a whole: a pie sector, a funnel stage, a pyramid layer. The two options answer different questions — which parts are worth a label, and whether there is room for the ones that are.
Extends
Extended by
Properties
avoidOverlap?
optionalavoidOverlap?:boolean
Drop a label there is no room for (default false). Off, every part gets its label and crowded ones are left to overlap; on, the largest parts ask for room first and the slivers are the ones that lose their labels.
Overrides
LabelOverlapOptions.avoidOverlap
minShare?
optionalminShare?:number
Share of the total a part needs before it is worth labelling, 0..1 (0 by default — every part is). 0.02 reads as "label what is at least two percent" and leaves a long tail of slivers unlabelled, which is usually what makes a crowded chart legible. Combines with avoidOverlap: this decides which parts are worth a label, that one whether there is room for it — of two labels after the same spot the larger part wins.