Skip to main content

Sparkline

  • 2 minutes to read

A sparkline is a small inline graph used to visualize a series of the actual or target values, typically over time.

Card_StretchedLayout_Sparkline

To learn how to display the sparkline for different layout types, see Layout.

Data Binding Specifics

You need to provide a date-time or numeric dimension whose data is used as argument values to display a sparkline within the card.

Card_Sparkline_DataSections

If you provide both actual and target values, a sparkline visualizes the actual value for each sparkline argument.

Change Sparkline Options

To manage sparkline settings, click the Options button (the DataItemsArea_OptionsButton icon) displayed next to the data item container. In the invoked Card Settings dialog, go to the Sparkline Options tab:

CardSettings_SparklineOptionsTab

The following options are available:

Sparkline Options Description
Sparkline view type Defines the sparkline’s view type. Sparkline data points can be represented as area, line, bars, or win and loss squares.
Highlight min/max points Specifies whether to highlight the minimum/maximum points of a sparkline.
Highlight start/end points Specifies whether to highlight the start/end points of a sparkline.

API

The following members related to sparklines:

API Description
CardDashboardItem.SparklineArgument Gets or sets a dimension used to provide sparkline argument values.
Card.ShowSparkline Gets or sets whether to show a sparkline within a Card.
SparklineOptions.ViewType Gets or sets a sparkline view type.
SparklineOptions.HighlightMinMaxPoints Gets or sets whether to highlight the minimum/maximum points of a sparkline.
SparklineOptions.HighlightStartEndPoints Gets or sets whether to highlight the start/end points of a sparkline.
See Also