Flutter Design Systems Galleries

Pie or donut chart

A pie or donut chart shows how a small number of categories divide a whole. Keep category names and amounts close to the slices.

About this look Stint app Appliance gallery

Compare budget shares

The budget totals 100 in both plans. Switch to Plan B to see ten move from Supplies to Travel while Fees stays at twenty.

Flutter preview Open preview
slices
Names each category and its share of the total.
semanticLabel
Names the budget and plan.
size
Sets the diameter of the chart.

Shared behaviour

  • Keyboard and focus. Tab to the plan button and activate it. In a look with keyboard selection on the chart, use the arrows to inspect slices.
  • Screen readers. Read the period and the chart’s description. The value or summary provided by the look changes with the data.
  • Direction and type. The surrounding text follows reading direction. Check the plot’s own ordering, labels and legend in RTL and at larger type.
Read the ui_core contract