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.

wdd-cards-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 (in the Sparkline section) whose data is used as argument values to display a sparkline within the card.

Card_BindingMenu_SparklineArgument

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

Change Sparkline Options

To change sparkline settings in the Web Dashboard’s UI, invoke the Binding menu, click the required data item in the Cards section and go to Sparkline Options in the data item’s menu. The following options are available:

Sparkline Options Description
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.