Pie chart

Categorical share. What the pie chart is for, the data it needs and every option it has.

5 min read

On this page

Categorical share. It sits in the Part-of-whole group of the widget library.

Example pie chart on a BankSync dashboard
An example pie chart drawn with sample data. Hover for values and switch between examples.

When to use it#

Use a pie chart to show how one total splits into a handful of parts, such as this month's spending by category or your balance split across accounts. It works best with two to six slices where one or two clearly dominate.

When to pick something else#

  • Want the total in the middle? Use a Donut chart.
  • Comparing the parts to each other, not to the whole? Use a Bar chart.
  • Many categories, or categories inside groups? Use a Treemap.
  • The split over time? Use a 100% stacked bar.

The data it needs#

Pick these in the Data tab of the inspector. BankSync suggests a column for each when your source has an obvious match.

FieldNeededPickNotes
CategoryYesa category
ValueYesa number

Rows that share a category are combined before drawing: choose Sum, Average, Count, Min or Max on the value field. See Binding data.

Pie chart options#

Set these on the Style tab of the inspector. "Automatic" means BankSync picks a value from the chart's size and data.

OptionWhat it doesValuesNew charts start with
Pop out on hoverSlide the hovered slice out from the centre so it stands apart.On or offOff
Start angleWhere the first slice starts, in degrees; 0 is 12 o’clock. Use with the end angle for a half or partial circle.NumberAutomatic
End angleWhere the last slice ends, in degrees. 360 closes the full circle; 180 makes a half.NumberAutomatic
Slice gapEmpty space between slices, in pixels.Number, 0 or moreAutomatic
Corner radiusRounds the corners of the shapes, in pixels. 0 keeps them square.Number, 0 or moreAutomatic
Sort by sizeOrder slices or groups from largest to smallest.On or offAutomatic

Needs history#

Show a note instead of the chart until the rows cover enough periods, so a first week never reads as a trend.

OptionWhat it doesValuesNew charts start with
Date fieldThe date column whose distinct periods are counted.TextAutomatic
PeriodWhat counts as one period: a day, week, month, quarter or year.Day, Week, Month, Quarter, YearAutomatic
Periods neededHow many distinct periods the rows must cover before the chart draws (2 to 60).Whole number, 2 to 60Automatic
Waiting messageShown until there is enough history. Leave empty for a message naming the periods.Text, up to 120 charactersAutomatic

Slice labels#

Text written on or beside each slice: its name, value or share.

OptionWhat it doesValuesNew charts start with
Show slice labelsWrite a label on each slice. Slices too small to hold one are skipped.On or offAutomatic
Label positionInside the slice, on its outer edge, or outside the circle with room reserved beside it.Inside, Outside, PerimeterAutomatic
Label contentWhat each label says: the category, the value, the percentage, or the category with one of them.Category, Value, Percent, Category and value, Category and percentAutomatic
Label sizeText size of the slice labels, in pixels.NumberAutomatic
Label colourColour of the slice labels. Leave empty to pick black or white for contrast automatically.ColourAutomatic
Smallest labelled sliceSkip labels on slices smaller than this share of the total, from 0 to 1 (0.05 is 5%).Number, 0 to 1Automatic

Shared chart styling#

Every chart also has the shared styling options. These apply to this one:

Messy data#

  • Rows with the same category are added together, and slices are sorted largest first.
  • Only eight slices are drawn by default: the seven largest, plus one grey "Other" slice for the rest.
  • Negative values (refunds, outflows stored as negatives) are left out and counted in the tooltip. If every value is negative you see "Only negative values; nothing to split". For spending, set the value to count spending so outflows become positive.
  • If everything adds up to zero you see "Everything is zero for this period".

On a phone#

The legend moves under the pie and lists each slice with its share. Labels on the slices only appear when there is room, so on a phone read the shares from the legend or tap a slice.

Use this page with your AI assistant

Every BankSync doc is available as plain Markdown for agents and LLMs.