This topic provides information on enabling the series highlighting feature along with a listing of the supported series. This topic also explains how to configure the series highlighting using the available events.
The following topic is a prerequisite to understanding this topic:
Topic | Purpose |
---|---|
The {DataChartName} requires a data object model to be mapped to control’s |
This topic contains the following sections:
This feature allows you to highlight an entire series or individual items within the series. For example, highlights the entire line in a series such as the LineSeries as it is all one shape; however, highlights can be applied to each individual column in a series such as ColumnSeries. Individual markers can be highlighted in all supported series.
Currently the feature only supports highlighting via the mouse.
The series highlighting feature is supported for the following series types:
The following screenshot is a preview of the xam DataChart control with a ColumnSeries and the series highlighting feature enabled.
The following table summarizes the properties used for series highlighting. These properties are set on the supported series.
Property Name | Property Type | * Description* |
---|---|---|
|
Enables the series highlighting feature, by default it is set to False. |
|
|
Determines the duration that the highlighting change takes. |
The screenshot, following the table, demonstrates how a chart with the IsHighlightingEnabled and HighlightingTransitionDuration properties of the ColumnSeries looks as a result of the following settings:
Property | Value |
---|---|
True |
|
00:00:10 |
Following is the code that implements this example:
There are two events that are specifically related to the series highlighting feature.
-
AssigningCategoryMarkerStyle (not supported for Financial Series or Financial Indicators)
The series highlighting feature is supported for the following series types:
These events can be configured to achieve the following:
-
Modify the way that the highlighting is represented
-
Modify the appearance properties assigned to the entire series such as a LineSeries, or each individual item in the series for the series having individual items such as ColumnSeries.
When using the above events to configure the highlighting on the series, only the properties that are available on that particular series can be used. For example, overriding the Fill or RadiusX property of a LineSeries does not have any affect since those properties do not affect the LineSeries.
The following table summarizes the properties of the AssigningCategoryStyleEventArgsBase.
Property Name | Property Type | * Description* |
---|---|---|
|
Start index of the range of data that is currently being highlighted. |
|
|
End index of the range of the data that is currently being highlighted. |
|
|
Start date of the range of data that is currently being highlighted. |
|
|
End date of the range of data that is currently being highlighted. |
|
|
Actual items from the data source being highlighted. However, if there is a lot of data and you called it every time the event was fired, will negatively impact performance. |
|
|
Overrides the default Fill property of the series. However, this property only takes affect if the Fill property only affects that particular series. |
|
|
Overrides the default Stroke property of the series. |
|
|
Overrides the default the Opacity property of the series. |
|
|
Determine the styling of the highlighted series. |
|
|
Progress state of the highlighting of the series. Value from 0 to 1. |
|
|
Progress state of the highlighting of the series. Value from 0 to 1. |
|
|
When set to True the default highlighting does not apply. |
|
|
Determines the event has a valid date range |
The AssigningCategoryMarkerStyleEventArgs inherit all the same properties as the AssigningCategoryStyleEventArgsBase as listed in the table above.
The following screenshot displays an example of using the AssigningCategoryStyle event to change the highlighting feature to fade non highlighting columns instead of changing the highlighting column.
Following is the code implemented for this example:
The following topics provide additional information related to this topic:
Topic | Purpose |
---|---|
The {DataChartName}™ requires a data object model to be mapped to control’s DataContext property. This article will provide a simple data object model but you can create your own and use it with this sample code instead. |
|
This section is your gateway to important conceptual and task-based information that will help you to use the various features and functionalities provided by the {DataChartName}™ control. |