You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Readable outside labels for crowded pie and donut charts #227
When a pie has many small, adjacent slices, outside labels made with radialRule + radialText are placed on their slice angle and overlap.
There is no built-in way to spread or hide them, so apps must write their own
pixel layout.
I have a working implementation with tests and docs, and can open a PR if this direction fits.
Happy to change the API shape (for example, an option on radialText instead of a new mark).
Thanks @hshoja, please open a draft PR with the implementation so we can review it before choosing the API shape.
Please include narrow-chart and resize cases, equal-priority ties, long labels, and what happens when maxShift hides a label. Stable keys and connector motion matter here too. The layout should work across renderers, and charts that do not use it should not pick up its bundle cost.
I haven't settled on a separate mark versus a radialText option yet, so let's compare those with the code in front of us.
Thanks @tannerlinsley. Draft PR with the implementation and the requested cases: #231. The PR description lists each case, its behavior and test coverage, the bundle numbers, and a short comparison of a separate mark vs a radialText option.
Activity
tannerlinsley commentedon Oct 14, 2026
Thanks @hshoja, please open a draft PR with the implementation so we can review it before choosing the API shape.
Please include narrow-chart and resize cases, equal-priority ties, long labels, and what happens when
maxShifthides a label. Stable keys and connector motion matter here too. The layout should work across renderers, and charts that do not use it should not pick up its bundle cost.I haven't settled on a separate mark versus a
radialTextoption yet, so let's compare those with the code in front of us.hshoja commentedon Oct 14, 2026
Thanks @tannerlinsley. Draft PR with the implementation and the requested cases: #231. The PR description lists each case, its behavior and test coverage, the bundle numbers, and a short comparison of a separate mark vs a
radialTextoption.