A sparkline is a small
line graph without axes or labels that presents a single trend
over time. A sparkline is about the size of one or two words, so it fits in a single cell and
repeats for
each row in a column. A sparkline does not have axes or labels. They are frequently
used to present
stock trends or production rates over time. A sparkline is intended to be both succinct
and noteworthy.
In the designer, you can add sparklines to a column in a list table. The data source
for the list table must include a date, datetime, or time data item before you can
add a sparkline.
A sparkline in the designer can have up to 40 bins. (A
bin is a way to group
continuous values into a smaller number of intervals.) When the sparkline data is binned, it is grouped
by a boundary. A boundary is a minute, hour, day, month,
quarter, or year. For example, if there are two years’ worth of data, then the data
will be grouped by month, and the sparkline will have 24 bins (or one for each month).
If there is one month (30 days) of data, the sparkline will have 30 bins. If you have
two months of data, the sparkline will have two bins because the data is binned by
a month boundary. Having a lot of data for the list table does not guarantee that
the sparkline provides more detail because the designer prioritizes bin boundaries
over maximum number of bins.
The
data tip values on the sparkline show the high and low values of the sparkline and the last
value in the sparkline.
The data tip values are affected by the boundary at which the data is binned and by
the aggregation of the data item. For example, suppose that the aggregation is Sum.
If the data is binned by day,
then the minimum and maximum values for a given day are displayed in the data tip.
However, if the data changes and it is binned by month, then the minimum and maximum
values for the sum of all days in the month are displayed in the data tip.
Note: The designer does not let
users control the binning of the sparkline.
In the example, both the
time series plot and the sparkline are using
Profit for the measure. The time
series plot has more detail than the sparkline because in the
time series plot, the data is grouped at a more granular level. The sparkline shows the same overall
line as the time series plot, but has less detail.
The sparkline does not display the trend at the most granular date, datetime, or time
level. Instead,
the sparkline summarizes the trend depending on the unit of time that is used in the
list table. For example, the sparkline might be summarized for the month, quarter,
or year, depending on the data. The report designer cannot change the level of summary
in the sparkline.
To add a sparkline:
-
If it is not already
selected, select the list table in the canvas that you want to update.
-
Right-click the list
table, and then select
Add Sparkline. The
Add Sparkline window is displayed.
-
-
For
Time Axis, select a date, datetime, or time data item in the current data source.
-
-
(Optional) Select the
Set baseline check box. Enter a
Value,
and select a
Fill type. Your choices are
Gradient or
Solid.
The
Set baseline option draws a horizontal line through the graph at the point on the Y axis where
the
baseline value resides. Everything above or below the baseline is filled in with either a
solid or
gradient color.
-
Click OK. The sparkline is added to the last column in the list table. You can move the sparkline
to another
location in the table.
To edit a sparkline,
right-click in the sparkline column in the list table, and then select
Edit Sparkline. The
Edit Sparkline window
is displayed. Update the information, and then click
OK to
save your changes.
To delete a sparkline, right-click in the sparkline column in the list table, and
then select Remove
Sparkline.