CrosshairHintBehavior.LabelPosition Property
Gets or sets the position of the crosshair label on the chart. This is a bindable property.
Namespace: DevExpress.Maui.Charts
Assembly: DevExpress.Maui.Charts.dll
NuGet Package: DevExpress.Maui.Charts
Declaration
public CrosshairLabelPositionBase LabelPosition { get; set; }
Property Value
Type | Description |
---|---|
CrosshairLabelPositionBase | The |
Remarks
Set the LabelPosition
property to one of the following objects:
- LineTrackingCrosshairLabelPosition — a crosshair label follows the cursor. The default option.
- StaticCrosshairLabelPosition — a crosshair label is fixed at a specific point in the chart. You can use the HorizontalAlignment and VerticalAlignment properties to specify where to anchor the label (the default position is the upper right corner of the chart).
Example
This example configures the crosshair cursor behavior and appearance.
<dxc:ChartView.Hint>
<dxc:Hint Enabled="True" ShowMode="OnTap">
<!--...-->
<dxc:Hint.Behavior>
<dxc:CrosshairHintBehavior GroupHeaderVisible="True"
GroupHeaderTextPattern="{} Year: {A$YYYY}"
ArgumentLabelVisible="True" ArgumentLineVisible="True"
ValueLabelVisible="True" ValueLineVisible="True"
HighlightPoint="True"
MaxSeriesCount="3">
<dxc:CrosshairHintBehavior.LabelPosition>
<dxc:StaticCrosshairLabelPosition />
</dxc:CrosshairHintBehavior.LabelPosition>
</dxc:CrosshairHintBehavior>
</dxc:Hint.Behavior>
</dxc:Hint>
<dxc:ChartView.Hint>
The CrosshairHintBehavior class provides the following properties to configure the crosshair cursor elements:
Property | Description |
---|---|
Gets or sets whether the argument label is visible on the chart. This is a bindable property. | |
Gets or sets whether the argument line is visible on the chart. This is a bindable property. | |
Gets or sets the text pattern for the group header of the crosshair label. This is a bindable property. | |
Gets or sets whether the group header is visible inside the crosshair label. This is a bindable property. | |
Gets or sets whether the chart highlights the series point when the crosshair cursor hovers over it. This is a bindable property. | |
| Gets or sets the position of the crosshair label on the chart. This is a bindable property. |
Gets or sets the highest number of series listed in the crosshair label. This is a bindable property. | |
Gets or sets whether the value label is visible on the chart. This is a bindable property. | |
Gets or sets whether the value line is visible on the chart. This is a bindable property. |