Example: Create a Period-over-period Line Chart
Period-over-period charts can show you how your business is performing in one period compared to other periods. A period-over-period chart can help you visualize any cyclical trends in your business. Column, line, and area charts work best for creating period-over-period charts.
The walkthrough will explain how to create a period-over-period chart:
- Add the same data series (average sales price) twice to a line chart.
- Set up unpinned time for 12 months, 6 months in the past and 5 months in the future.
- Set up the first data series for the current period.
- Set up the second data series for a prior period, 12 months in the past.
The following is a period-over-period line chart that visualizes the average sales price for a current period compared to a 12-month period in the past.
Prerequisites
You must have:
This walkthrough assumes that the perspective and dashboard were previously created. This walkthrough uses the default version Actuals, Perspective Context September 2018, and a metric account ASP - Average Sales Price.
Your versions and data sources may be different than the ones illustrated in this example.
See Reference: Area and Line Chart Settings for options and descriptions.
Create a Line Chart for an Unpinned 12-month Period
You will add the same data series twice to a line chart to set up the period-over-period visualization. You will set time for the chart to show data for a 12-month period for an unpinned time range – six months prior to the current month and five months into the future.
Create the Line Chart
After completing this step, the chart will look like:
Each data series is set by default to the current time alignment. Initially each data series is aligned on top of each other – giving the appearance of only one data series. Open th Data Settings tab to confirm that two identical data series are in the chart. In a later step, you will change the time alignment on one of the data series to create the period-over-period visualization.
- Open the perspective and navigate to the dashboard and select
.
- On the left panel, click
to select a chart. Drag and drop
to the design area to create a line chart.
- Select
to choose an account. Drag and drop the ASP - Average Sales Price account to the line chart.
- Add the same account again to create the second data series.
Set Up Unpinned Time
You will set time for the chart to show data by month for an unpinned time range from January to December of the current year. You will set the time alignment on each data series to create the period-over-period alignment. After completing these steps, the chart will look like:
If the current time period is September 2018, the time range is March 2018 through February 2019.
- Select
to set the time for the chart:
- Stratum: Month
- Span is Range
- Unpin time.
(gray indicates unpinned) and select Backwards 6 months and Forwards 5 month. By including the current period, this setup will visualize data for a 12-month period.
Change the Time Alignment on a Data Series
After completing these steps, the chart will look like:
The time labels on the x-axis will reference the same month for the current year and for the prior year. For example: Mar 2018, Mar 2017. If these pairing do not match month-for-month, the offset count needs adjustment.
- Select
to change the data settings of a data series.
- Expand the second ASP - Average Sales Price account and change:
- Time Alignment: Previous
- Offset Count: 12. Sets the time alignment back 12 periods based on the time settings on the chart.
Format the Chart
To make the data on this chart more impactful, experiment various settings:
- Zoom into key data ranges by scaling the primary axis.
- Trim the data series referenced on the legend.
After completing these steps, the chart will look like:
Scale the Primary Axis
By default, a data series is set to auto-scaling and axis is set to start at zero. You can change the scale to zoom into key data ranges for a more impactful visualization.
- On the right panel, select
to change the appearance of the chart.
- Expand the Axis section and change the Primary Axis Start From Zero to off.
Notice in this example that the axis starting point changes from 0 to 77. The changes from data point to data point is more visible.
If you want to zoom in more, set Primary Axis Auto Scaling to off and enter minimum and maximum axis ranges.
Format the Data Series
Improve the readability of a chart by editing the legend labels for each data series and adding a data labels on the data points of one of the data series.
- Select
to change the data settings for each data series.
- On the first data series, change:
- Name: ASP - Current Period
- Data Label: On
- On the second data series, change the Name: ASP - Prior Period
This completes this walkthrough.