Status
The status of the component
Status
The status of the component
Figma component
A link to the Figma library where the component lives.
Repository
A link to the repo where the component lives.
On hover of a segment, all other segments reduce in opacity. A tooltip follows the hovering mouse.
On hover of a legend item, all other legend items as well as their corresponding areas reduce in opacity.
If drilldown is possible via click, the mouse turns to a finger instead, indicating clickability.
On focus, a focus ring encompasses the segment with a corresponding tooltip.
A checkbox should be used to show or hide label groups (ie. Series name, %, metric value).
Label groups should be 24px above, below, to the left and/or to the right of the chart.
If the segment is on the left side of the chart, labels should be vertically-aligned 24px to the left of the chart (and above/below as needed). If the segment is on the right side of the chart, labels should be vertically-aligned 24px to the right of the chart (and above/below as needed).
Label groups should be right-aligned.
The distance between the % and metric value should be 16px.
Label lines should be 1px away from the chart.
Label lines should point to the middle of the segment they represent.
There should be a 4px gap between the label group and the label line.
When possible, the label line should come horizontally from the chart. If this is not possible (eg. The middle of the segment is close to the top or bottom of the chart meaning the horizontal label line would cross the chart), use a vertical line upward/downward with a horizontal line extending to its respective side.
The entire chart and all its segments should proportionally resize as the chart grows/shrinks.