Edit this page

Most important properties, settings and elements

1.Markers

The markers are visual indicators, showing the location of each point along the graph line. This setting is applicable to spark lines of type RadLinearSparklineBase. This type pertains to a line type sparkline, as well as an area one. These two types, along with the setting are demonstrated below:
Line

Area

The markers are enabled by setting the ShowMarkers property, as demonstrated by the code snippet below:

RadSparklineBase line = new RadLinearSparkline();
line.ShowMarkers = true;

2. High point
This is a visual indicator, which highlights the single highest-value datapoint in a series. In case there is more than one high point, all such points are highlighted. If the spark line is of type RadColumnSparkline or RadWinLossSparkLine, the bar which represents the highest value is highlighted.
The highpoint is enabled by setting the ShowHighPointIndicator, as demonstrated by the code snippet below:

RadLinearSparkline  line = new RadLinearSparkline();
line.ShowHighPointIndicators = true;

3. Low point
This is a visual indicator, which highlights the single lowest-value datapoint in a series. In case there is more than one such point, all similar points are highlighted. If the spark line is of type RadColumnSparkline or RadWinLossSparkLine, the bar which represents the lowest value is highlighted.
The low point is enabled by setting the ShowLowPointIndicator property:

RadLinearSparkline  line = new RadLinearSparkline();
line. ShowLowPointIndicators = true;

4. Negative points
These visual indicators highlight all negative data points in a series. If the spark line is of type RadColumnSparkline or RadWinLossSparkLine, the bars which represent negative values are highlighted.
The negative points indicators are enabled by setting the ShowNegativePointsIndicator to true.

RadLinearSparkline  line = new RadLinearSparkline();
line.ShowNegativePointIndicators = true;

5. First point
This is a visual indicator, which highlights the first data point in a series. If the spark line is of type RadColumnSparkline or RadWinLossSparkLine, the bar which represents the first data point is highlighted. If the spark line is of type RadColumnSparkline or RadWinLossSparkLine, the first bar is highlighted.
The first point is indicated in the series, by setting the ShowFirstPointIndicator property, as demonstrated below:

RadLinearSparkline  line = new RadLinearSparkline();
line. ShowFirstPointIndicator = true;

6. Last point
This is a visual indicator, which highlights the last data point in a series. If the spark line is of type RadColumnSparkline or RadWinLossSparkLine, the bar which represents the last value is highlighted. The last point is indicated in the series, by setting the ShowLastPointIndicator property, as demonstrated below:

RadLinearSparkline  line = new RadLinearSparkline();
line. ShowLastPointIndicator = true;

Empty points

There are cases when the collection of data, to which the Sparkline is bound may contain empty elements, with no data to which the control can bind and visualize. The behavior of the control in such cases is governed by the EmptyPointBehavior property of the control, which is demonstrated below:

RadScatterSparkline chart = new RadScatterSparkline(); 
chart.EmptyPointBehavior = EmptyPointBehavior.DropPoint;

There are two possible settings - DropPoint, and ShowAsZero. The first one removes the point, whereas the second visualizes the point as though its original value was zero.

Was this article helpful? Yes No

Give article feedback

Tell us how we can improve this article

Dummy