Documentation Vision Library+ Documentation

Period Comparison Chart+

Period Comparison Chart+ lays repeated time periods on top of each other, such as today, yesterday and last week, so you see at once whether the current period behaves like the earlier ones. A summary table next to the chart gives the exact numbers for every period.

Overview

Three days of plant output on one 24-hour axis, with the first day highlighted and a summary table below

Watch the demo

See Period Comparison Chart+ in a practical PI Vision workflow.

When to use it

Use Period Comparison Chart+ when you need to:

  • Compare a day, shift, week or month with the periods before it.
  • Compare the same weekday or the same month across weeks or years.
  • Show how far the current period is above or below a reference period.
  • Keep a known good or known bad period on screen while the display time moves.

Choose Combo Chart+ when the question is what happened at absolute clock time, or when the series are not repeated periods of the same measurement.

Before you begin

  • Use numeric time-series data: a PI point or an AF attribute with numeric values.
  • The archive must hold history for every period you compare. A period without history stays empty.
  • Set the display time range first. It decides the first period, and every other period is built from it.

Add and set up the symbol

  1. Select Period Comparison Chart+ in the PI Vision symbol gallery.
  2. Drag a numeric data source onto the display.
  3. In the time bar, set the range to the span you want to compare, for example the last 8 hours.
  4. Right-click the symbol and select Configure Period Comparison Chart.
  5. Under Data Retrieval, set Mode to Interpolated and Interval to 15 minutes.
  6. Under Summary Table, set Show to ON.
  7. Close the pane. The chart shows the last 8 hours and the 8 hours before them, drawn on one axis that counts the time elapsed since the start of each period. The table below lists both periods.
Two 8-hour periods overlaid, with a summary table

Common tasks

Compare one day with the day before

Use this for a daily review: is today running like yesterday? The anchor period is the calendar day that contains the end of the display time range. An end time of exactly midnight belongs to the next day, so end the range at 11:59 PM to analyze a finished day.

  1. Set the time bar to the day you want to analyze.
  2. Right-click the symbol and select Configure Period Comparison Chart.
  3. Under Layers, set Period Type (1) to Calendar.
  4. Set Count (2) to 2, the number of periods to draw.
  5. Set Duration (3) to 1 Day.
  6. Under Data Retrieval, set Mode to Interpolated and Interval to 1 hour.
Layers group with Period Type, Count and Duration marked

Each day is drawn from 00:00 to 23:00 and labeled with its date. The first period in the list is the one you selected, and the next is the day before.

Two days of plant output overlaid, labeled Oct 8 and Oct 7

Compare the same weekday over several weeks

Use this when production follows a weekly pattern and a comparison with yesterday would mislead.

  1. Start from the setup in Compare one day with the day before.
  2. Under Layers, set Shift By (1) to Calendar.
  3. In Offset (2), enter 1 and select Week.
  4. Set Count to 4.
  5. Set Highlight First (3) to ON. The first period stays fully colored and the others fade.
Layers group with Shift By, Offset and Highlight First marked

The chart draws the selected day and the same day in each of the three weeks before it. Labels such as Oct 8 (-1w) name the offset.

One highlighted day compared with the same weekday in three earlier weeks

Compare each month with earlier years

Use this for seasonal or year-over-year views. Set the time bar to cover the current year.

  1. Under Layers, set Period Type to Calendar, Duration to 1 Year and Count to 3.
  2. Under Data Retrieval, set Mode (1) to Interpolated.
  3. Set Interval (2) to 1 Month.
  4. In the data sources section, set Series Type to Bar.
  5. Under Time Scale, set Type to Discrete, so the months are categories and not points on a time line.
Data Retrieval group with Mode and Interval marked

Each month shows one bar per year. A month with no bar has no history in that year, or has not happened yet.

Monthly bars for 2026, 2025 and 2024

Show how far a period is from a reference period

Use this when the question is "by how much", not "what does it look like". Start from the one-day setup with Count set to 2.

  1. Under Baseline Comparison, set Show (1) to ON.
  2. In Mode (2), select Delta for the absolute difference. Percent Delta shows the relative change.
  3. In Reference (3), select Last Rendered Layer to use the oldest period as the reference.
  4. Optionally set Overlay (4) to ON to keep the reference curve visible.
Baseline Comparison section with Show, Mode, Reference and Overlay marked

Every other period is replaced by its difference from the reference, and the value axis crosses zero. Positive values mean the period was higher. The overlay is drawn on its own hidden scale, so compare its shape, not its height, with the left axis. Band Between Series keeps the original curves and shades the gap instead.

Delta of Oct 8 against Oct 7, with the reference curve dashed

Keep a reference period on screen

Use this when one period, such as a known good day, must stay visible while the display time moves.

  1. Turn on the summary table under Summary Table.
  2. In the table, select the pin in the Pin column of the period to keep.
  3. Move the time bar to another range.

The pinned period moves to a Pinned Layers group and stays in the chart. The other rows sit under Dynamic Layers and follow the new range. Select the red pin again to unpin the period.

Summary table with a pinned layer above the dynamic layers

Use the symbol

Period Comparison Chart+ with numbered callouts
What it shows
(1)The first period, drawn in full color when Highlight First is on.
(2)The current-time marker, a dashed vertical line. It appears only while the first period contains the current time.
(3)The tooltip. It lists the value of every visible period at the same position on the axis.
(4)The chart toolbar.
(5)The legend. A hidden period is dimmed.
(6)The summary table, with one row per period.
  • Hover the plot to read the value of every period at the same elapsed time.
  • Wheel and drag: the mouse wheel zooms. A drag pans, or draws a zoom box when Box zoom is selected in the toolbar. Zooming moves only the chart and never changes the display time range.
  • Toolbar: it holds Pan, Box zoom, Zoom in, Zoom out, Reset zoom, Fullscreen and Download. Download offers PNG, SVG and PDF images and CSV, JSON and XLSX data with one row per plotted point.
  • Eye icon: select it in the Visible column to hide or show a period. The change lasts until you reload the display.
  • Pin icon: select it in the Pin column to keep a period, as in Keep a reference period on screen.
  • No data: a period without history draws nothing. If no period has data, the chart shows an empty-state message.
  • Limit lines: when a multi-state is configured for a data source, its limits for the first period appear as dashed lines. They have no row in the table.
  • 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 Period Comparison Chart. The groups appear in this order. Configure Multi-State is a separate menu command that sets the limit lines.

Style, Title, Legend, Data Labels, Tooltip

SettingWhat it does
StyleTheme, Surface, Container Style, Foreground, Background and Font Size change the look. Apply to all symbols copies the theme, surface and container style to every other Vision Library+ symbol on the display.
TitleTitle and Sub Title show or hide each heading. Alignment places it left, center or right.
LegendEnabled shows or hides it. Position, Placement and Alignment place it, Size fixes its width or height, and Color shows a marker or colors the text.
Data LabelsShow prints each value on the plot. Use it on sparse charts only, because labels overlap on dense ones.
TooltipShow turns the hover tooltip on or off. Pointer selects no pointer, an argument line or a cross.

Grid, Toolbar, Interactivity

SettingWhat it does
GridShow turns the grid on or off. Lines selects None, Horizontal, Vertical or Both. Bands shades alternate rows. Border draws the Axes, a Frame or None.
ToolbarShow Toolbar turns the toolbar on or off, every button included.
InteractivityEnable Zoom is the master switch for wheel zoom, drag and the zoom buttons. Drag mode selects Pan or Box zoom as the mode the chart starts in. A viewer's toolbar choice is not saved.

Layers

SettingWhat it does
ModeDynamic builds the periods from a rule. Manual lists periods one by one. See the first three tasks.
Period TypeDisplay Time compares the exact range of the time bar with equally long ranges before it. Calendar snaps to whole days, weeks, months or years. Used in Compare one day with the day before.
CountThe number of periods, from 1 to 24. Each period of each data source is a series, and the chart warns when it plots more than 12.
DurationThe length of a calendar period. Available when Period Type is Calendar.
DirectionPast builds earlier periods and Future builds later ones.
Shift ByPeriod steps back by one period length. Calendar steps by the Offset you enter, from minutes to years. Used in Compare the same weekday over several weeks.
PeriodsThe step between periods, in period lengths. Available when Period Type is Display Time and Shift By is Period.
Distinguish Layers ByAuto, Color, Line Style or Opacity. Color suits one data source, and line style suits several data sources that already have their own colors.
Show Full Historical PeriodsDraws earlier months or years in full, even when the first period is shorter. Available when Duration is Month or Year.
Highlight First, Other OpacityEmphasize the first period and fade the others to the opacity you set.
Manual layersIn Manual mode, Add Layer adds a row with a name and either an Offset from the display time or a Custom Start Time and End Time. The name appears in the chart and the table.

Time Scale and Value Scale

SettingWhat it does
TypeTimeline draws a continuous time axis. Discrete draws categories.
LabelsScale labels the axis with elapsed time. Range labels it with the date range. Available when Type is Timeline.
Show, Position, TitleShow or hide the time axis, place it at the bottom or top, and add its title.
Value ScaleSingle scale shares one value axis. With several data sources, Multiple gives each its own axis on one plot and Separate gives each its own panel. Use them when data sources have different units.
Label Position, Show, Position, Invert Scale, TitlePlace, show, flip and title the value axis.
TransformLinear or Logarithmic. Not available while Baseline Comparison is Delta or Percent Delta, because differences cross zero.
Scale Range, Ticks, UnitsAuto, Database or Custom range, the tick spacing, and the unit text printed in the axis title.

Data Retrieval

SettingWhat it does
ModeDefault loads display-friendly data. Recorded loads the archived events and can return many points on long ranges. Interpolated samples every period at the same Interval so points line up. Summary returns one calculated value per interval.
Interval, Sync TimeThe sample or summary spacing, and an optional clock time that the intervals start on. Available for Interpolated and Summary.
Type, BasisThe calculation for Summary: Total, Average, Minimum, Maximum, Range, Standard Deviation, Population StdDev, Count or Percent Good, and Time Weighted or Event Weighted. Available when Mode is Summary.
Start- and EndtimesDisplay time range, a Custom time range, or a Duration and offset. The first period follows this range.

Summary Table and Baseline Comparison

SettingWhat it does
Summary TableShow turns the table on or off. Height (%) reserves a share of the symbol, and 0 means automatic. Columns select Value, Average, Standard Deviation, Min, Time at Min, Max, Time at Max, Count and Sum. The name, visibility and pin columns are always there.
Baseline ComparisonShow, Mode and Reference as in Show how far a period is from a reference period. Tooltip Only leaves the chart unchanged and adds the baseline, delta and percent delta to the tooltip. Specific Layer takes a Layer Number in the rendered order.
Band Opacity, Overlay Opacity, Tooltip DetailsSet the shading, the overlay curve and whether the tooltip lists the difference.

Data sources

SettingWhat it does
Data source listSelects the data source to edit. Several data sources multiply the number of series.
Label, ColorThe name in the chart and table, and the data source color. When several periods are drawn, the final color also depends on Distinguish Layers By.
Series TypeLine, Area, Bar or Scatter. Use Bar for interval values.
Line Shape, Dash Style, Line Width, Marker Size, MarkersStyle a line or area series. Step line shape suits states that hold until the next change.
LayersAll repeats the data source in every period. Anchor Only draws it in the first period only, which suits a target or a limit.

Troubleshooting and limitations

SymptomCauseWhat to do
A period is missing or empty.The archive has no history for that period, or the period lies in the future.Check the data source in PI System Explorer, or select a shorter Duration or a smaller Count.
The first period is the wrong day.In Calendar mode the first period is the day that contains the end of the display time, and midnight belongs to the next day.End the display time range at 11:59 PM.
The chart shows a warning about the number of series.Periods multiplied by data sources exceed 12.Reduce Count or the data sources, or hide periods in the table.
Lines look noisy.Data Retrieval Mode is Default or Recorded on a fast-changing point.Select Interpolated and a longer Interval.
Transform is missing in Value Scale.Baseline Comparison is Delta or Percent Delta.Switch the baseline to Band Between Series or Tooltip Only.
The toolbar is missing.Show Toolbar is OFF.Set Show Toolbar to ON.

Limitation: The time axis is aligned: every period is folded onto the first one, so zooming never changes the display time range.

Limitation: Data sources with different units share one scale unless you select Multiple or Separate under Value Scale.