Documentation Vision Library+ Documentation

Pie Chart+

Pie Chart+ shows how several numeric values add up to a whole, with one slice for each data source. Choose a pie, donut, half-donut, or polar layout and label the slices with names, values, or percentages.

Overview

Donut chart of energy use by area with percentage labels and a total in the center

When to use it

Use Pie Chart+ when you need to:

  • Show how much each of a few values contributes to a total, such as energy use by area.
  • Show the total in the center of a donut next to its parts.
  • Compare shares at the current display time, or as averages over the display time range.

Choose Combo Chart+ when you must compare precise values, show many categories, or follow values over time.

Before you begin

  • Prepare two or more numeric PI Points or AF attributes. Each data source becomes one slice.
  • Use values that are parts of the same total, in compatible units. Pie Chart+ adds the values as they are and does not convert units.
  • Keep the number of slices small, so that labels and colors stay distinguishable.

Add and set up the symbol

  1. Select Pie Chart+ in the PI Vision symbol gallery.
  2. Drag the numeric data sources onto the symbol.
  3. Right-click the symbol and select Configure Pie Chart.
  4. Under Type, select Donut.
  5. Under Total, set Enabled to ON.
  6. Close the pane. The symbol shows one slice per data source, each labeled with its share, and the sum of all slices in the center.
Donut chart with one slice per data source and the total in the center

Common tasks

Choose the chart layout

Use this when the default pie does not fit, for example when you want a total in the middle or a layout that needs less height.

  1. Right-click the symbol and select Configure Pie Chart.
  2. Under Type, select a layout button (1): Pie, Donut, Donut Half, or Polar.
  3. For a donut or half donut, drag the Radius slider (2) to change the size of the opening.
Type group with the Donut button and the Radius slider marked
LayoutExampleWhat it shows
Pie
Pie layout
A full circle. Compare the angle of each slice.
Donut
Donut layout
A ring with an open center that can hold a total.
Donut Half
Half-donut layout
A semicircle. Use it when the symbol is wide and low.
Polar
Polar layout
Equal-angle wedges whose length shows the value. Compare lengths instead of angles.

Show each slice's share as a percentage

Use this when readers care about proportion more than the raw values.

  1. In the configuration pane, open Data Labels.
  2. Make sure Show is ON.
  3. Set Name (1) and Value (2) to OFF.
  4. Set Percent (3) to ON.
  5. Optionally set Position to Inside, Outside, or Auto.
Data Labels group with Name and Value off and Percent on

Each slice shows its share of the total. To show the same figure in the legend, see Place and format the legend.

Pie chart with a percentage on each slice

Put a total in the center of a donut

Use this when readers need the sum of all slices next to the parts. Select the Donut or Donut Half layout first.

  1. In the configuration pane, open Total.
  2. Set Enabled (1) to ON.
  3. Set Label (2) to ON to print the word "Total" above the number.
  4. In Units (3), select the unit to print after the number.
  5. In Decimals (4), select how many decimals to show.
Total group with Enabled, Label, Units, and Decimals marked

The center of the donut shows the sum of all slice values. Units only adds text after the number. It lists the units of your data sources and does not convert anything.

Donut chart with the total in the center

Place and format the legend

Use this when the legend crowds the chart or must show more than names.

  1. In the configuration pane, open Legend.
  2. In Position (1), select Top, Right, Bottom, or Left.
  3. In Alignment (2), select where the legend sits along that edge.
  4. In Format (3), select what each entry shows, for example Name, Percent.
Legend group with Position, Alignment, and Format marked

The legend moves to the chosen edge and each entry shows the chosen fields. A legend at the top or bottom wraps into more rows; when those rows would take more than about a third of the symbol height, or the legend is at the left or right, it adds page arrows with a page count such as 1/2 instead.

Pie chart with a legend on the right showing names and percentages

Change a slice color

Use this when a slice must match a color that your operators already know.

  1. In the configuration pane, open Trace Options.
  2. Select the data source in the list (1).
  3. Under Options, open the Color list (2) and select a color.
Trace Options with a data source selected and its Color list marked

The slice for that data source changes color, and its legend marker follows. To paint every slice in one color, set Mode under Coloring to Single.

Pie chart with the Lighting slice changed to yellow

Show averages instead of the current value

Use this when the shares should reflect a period, such as the last eight hours, and not a single moment.

  1. In the configuration pane, open Trace Options.
  2. Select a data source in the list (1).
  3. Set Value Type (2) to Average. Other choices are Maximum, Minimum, StdDev, pStdDev, and Range.
  4. Repeat steps 2 and 3 for each data source.
Trace Options with a data source selected and Value Type set to Average

The symbol uses the range in the PI Vision time bar. Slice sizes show each data source's average over that range.

Pie chart titled Average energy use, last 8 hours

Use the symbol

Donut chart with numbered callouts
What it shows
(1)The title.
(2)A slice. Its size is the data source's share of the total.
(3)A data label with the share, the value, or the name, as configured.
(4)The total of all slice values, in the center of a donut.
(5)The legend. Its marker color matches the slice.
(6)The tooltip for the slice under the pointer: name, value, and percentage.
  • Hover a slice to see its tooltip. The tooltip shows the value with its unit and the slice's percentage of the total.
  • Legend pages: when the legend shows page arrows, use them to move between pages.
  • Display time: the slices follow the PI Vision display time. In a live display they update with new values. When you change the display time range, the symbol shows the values for that range.
  • The symbol only displays data. It does not write to the PI System or change other symbols.

Configure the symbol

Right-click the symbol and select Configure Pie Chart. Groups appear in this order. Groups that apply only to some layouts say so.

Type

SettingWhat it does
Pie, Donut, Donut Half, PolarSelects the layout. See Choose the chart layout.
RadiusSets the size of the opening, from 0% to 95%. Available when the layout is Donut or Donut Half.

Title

SettingWhat it does
Title, Sub TitleShow or hide each heading and set its text.
Font Size, AlignmentSet the heading text size and its position: left, center, or right.

Style

SettingWhat it does
ThemeSelects the color theme, from Software Athlete to Custom Theme. Custom Theme adds Foreground and Background colors.
SurfaceSelects Flat or Gradient fill.
Container StyleSelects the frame around the symbol: None, Flat, Card, Framed, or Glass.
Apply to all symbolsCopies the theme, surface, container style, and display background to every other Vision Library+ symbol on the display.

Coloring

SettingWhat it does
ModeMultiple uses each data source's own color. Single paints all slices in one color. Used in Change a slice color.
ColorSets the single color. Available when Mode is Single.
StrokeSets the outline color between slices.
GradientTurns a shaded fill on or off. Available when the layout is Polar.
OpacitySets the transparency of the slices, from 10% to 100%.

Legend

SettingWhat it does
EnabledShows or hides the legend.
Position, AlignmentPlace the legend on an edge and along it. Used in Place and format the legend.
SizeAuto fits the legend to its entries. The other choices fix its size at 120, 180, 240, or 320 px.
ColorMarker shows a colored marker beside each entry. Text colors the entry text instead.
FormatShows the name, value, percentage, or a combination.

Axis Y and Grid

Both groups appear only when the layout is Polar.

SettingWhat it does
ScaleShows or hides the value scale.
Scale RangeAuto fits the scale to the values. The custom range adds Top, Bottom, and Spacing. The invert button reverses the scale.
Show (Grid)Shows or hides the rings and spokes behind the wedges.

Data Labels

SettingWhat it does
ShowShows or hides the labels on the slices.
PositionPlaces labels Inside, Outside, or Auto. Not available when the layout is Polar.
Name, Value, PercentSelect what each label shows. Used in Show each slice's share as a percentage.
BackgroundAdds a badge behind each label.
Font SizeSets the label text size.

Total

Not available when the layout is Polar. Use it with Donut or Donut Half: on a plain pie the total is drawn over the slices.

SettingWhat it does
EnabledShows or hides the total. Used in Put a total in the center of a donut.
LabelPrints "Total" above the number.
UnitsAdds a unit after the number. The list holds the units of your data sources.
Font Size, DecimalsSet the text size and the number of decimals, from 0 to 10.

Tooltip

SettingWhat it does
ShowTurns the hover tooltip on or off.

Trace Options

SettingWhat it does
Data source listLists the slices. Use the buttons below the list to reorder or remove a data source.
Value TypeSelects the value a slice uses: Value (the value at the display time) or a statistic over the time range. Used in Show averages instead of the current value.
LabelSelects the name shown for the slice, or lets you enter a custom name.
ColorSets the slice color. Available when Coloring Mode is Multiple. Used in Change a slice color.
FormatSets the number format of the slice value.

Troubleshooting and limitations

SymptomCauseWhat to do
A slice is missing.Its data source returns no numeric value, or the value is zero.Check the data source in Trace Options. A zero value has no area and no label.
Labels overlap.The symbol is too small for the number of slices.Enlarge the symbol, use fewer data sources, or turn Data Labels off and use the legend.
The percentages look wrong.The values are not parts of the same total or use different units.Use data sources that share a unit and describe one whole.
The total overlaps the slices.Total is on with the Pie layout.Select Donut or Donut Half.
Position, Total, or Radius is missing from the pane.The setting does not apply to the selected layout.Select a layout from the table in Choose the chart layout.

Limitation: The total adds the slice values as they are. It does not convert units.