Sparkline

<< Click to Display Table of Contents >>

Navigation:  User Interface Reference > Report Designer > Report Designer for WinForms > Report Designer Reference > Report Controls >

Sparkline

Interface Elements for Desktop > Report Designer > Report Designer for WinForms > Report Designer Reference > Report Controls > Sparkline

The Sparkline control displays a compact chart that is commonly used to reflect the flow of data for every row in a report.

img23719

In the Property Grid, the Sparkline control's properties are divided into the following groups.

ExpandedCollapsed Appearance

Background Color

Specifies the background color for the control. This option is also available in the Formatting Toolbar (img8441).

Borders, Border Color, Border Width, and Border Dash Style

Specify border settings for the control.

Formatting Rules

Invokes the Formatting Rules Editor, which allows you to choose which rules should be applied to a control during report generation, and define the precedence of the applied rules. To learn more on this, refer to Conditionally Change a Control's Appearance.

Padding

Specifies indent values that are used to render the contents of a Label.

Style Priority

Specifies the priority of various style elements (such as background color, border color, etc.). For more information on style inheritance, refer to Understanding Style Concepts.

Styles

Assigns an existing (or newly created) style to the control, and also specifies odd and even styles.. For more information on style inheritance, refer to Understanding Style Concepts.

View

Specifies the type of a chart displayed by a Sparkline control. The following table lists the available Sparkline view types.

View Type

Image

Description

Line

img19306

A line chart.

Area

img19307

An area chart.

Bar

img19308

A bar chart.

WinLoss

img19309

A win-loss chart.

ExpandedCollapsed Behavior

Anchor Horizontally

Specifies the horizontal anchoring style of the control, so that after page rendering it stays attached to the left control, right control, or both. This property defines how a report control is resized to maintain the distance to the left and right edges of its container control.

Anchor Vertically

Specifies the vertical anchor style of the control, so that after a page is rendered it stays attached to the top control, bottom control, or both.

Can Publish

Specifies whether or not a report control is displayed in a printed or exported document.

Scripts

This property contains events that you can handle with the required scripts. For more information on scripting, refer to Handle Events via Scripts.

Visible

Specifies whether the control should be visible in a print preview.

ExpandedCollapsed Data

(Data Bindings)

If the current report is bound to data, this property allows you to bind some of the control's properties (Bookmark, Navigation URL, Tag and Text) to a data field obtained from the report's data source, and to apply a format string to it. For more information on this, refer to Displaying Values from a Database (Binding Report Elements to Data).

Data Adapter

Determines the data adapter that will populate the Sparkline's data source, which is assigned via the Data Source property. It is automatically set to the appropriate value when the Data Member property is defined.

Data Member

Determines the data source member that supplies data to a Sparkline.

Note

Usually, it is not necessary to specify the Data Member property when binding a Sparkline to data. This property should only be set directly if the dataset contains more than one table.

Data Source

Determines a Sparkline's data source.

Tag

This property allows you to add some additional information to the control; for example its id, by which it can then be accessible via scripts.

If the current report has a data source, the Tag property can be bound to a data field obtained from the data source. To do this, expand the (Data Bindings) property, and in the Tag.Binding drop-down selector, select the required data field.

Value Member

Specifies the data member field that provides point values for a Sparkline.

Value Range

Specifies a range of values displayed by a Sparkline.

ExpandedCollapsed Design

(Name)

Determines the control's name by which it can be accessed in the Report Explorer, Property Grid or via scripts.

ExpandedCollapsed Layout

Location

Specifies the control's location in report measurement units.

Size

Specifies the control's size in report measurement units.

Snap Line Margin

Specifies the margin (in report measurement units) around the control when it is aligned using Snap Lines, or when other controls are aligned next to it.

ExpandedCollapsed Navigation

Bookmark and Parent Bookmark

These properties are intended for the creation of a hierarchical structure within a report called a document map. For more information, refer to the Add Bookmarks topic.

If the current report is bound to a data source, the Bookmark property can be bound to a data field obtained from the data source. To do this, expand the (Data Bindings) property, and in the Bookmark.Binding drop-down selector, select the required data field.

Navigation URL and Navigation Target

Use the Navigation URL property to specify a URL for web browser navigation when a user clicks a Label. The web browser displays a page in a window or a frame as specified by the Navigation Target property. Note that a URL should have an appropriate prefix (e.g., "http://"). You can create cross-references within the report by assigning the name of the target control to the Navigation URL property, and setting the Navigation Target property to "_self". For more information, refer to Create Hyperlinks.

If the current report is bound to a data source, the Navigation URL property can be bound to a data field obtained from the data source. To do this, expand the (Data Bindings) property, and in the Navigation URL.Binding drop-down selector, select the required data field.

Copyright (c) 1998-2016 Developer Express Inc. All rights reserved.

Send Feedback on this topic to DevExpress.