Skip to main content

SeriesBase.CrosshairHighlightPoints Property

Gets or sets a value that specifies whether the series points are highlighted when the crosshair cursor hovers over them.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
[XtraSerializableProperty]
public DefaultBoolean CrosshairHighlightPoints { get; set; }

Property Value

Type Description
DefaultBoolean

Default - the CrosshairHighlightPoints property value is obtained from the parent CrosshairOptions.HighlightPoints property; true - the series points are highlighted when the crosshair cursor hovers over them; false - the series points are not highlighted.

Available values:

Name Description Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

Remarks

Use the CrosshairHighlightPoints property to enable/disable point highlighting for a particular series when the crosshair cursor hovers over a point.

Note

To enable the crosshair highlighting points feature, make sure the CrosshairOptions.HighlightPoints property is set to true.

The following images demonstrate the CrosshairHighlightPoints property in action.

CrosshairHighlightPoints=True (for Series1);

CrosshairHighlightPoints=False (for Series2)

CrosshairHighlightPoints=True (for Series2);

CrosshairHighlightPoints=False (for Series1)

CrosshairHighlightPoints_True(Series1)

CrosshairHighlightPoints_True(Series2)

Note that the MarkerVisibility property for a particular series (e.g., LineSeriesView.MarkerVisibility) is set to false by default to support series point highlighting on a diagram.

In addition, the crosshair cursor axis lines and labels are displayed on a diagram. It can be done by setting the CrosshairOptions.ShowArgumentLabels, CrosshairOptions.ShowValueLabels, CrosshairOptions.ShowArgumentLine, and CrosshairOptions.ShowValueLine properties to true.

Note

This property is not applicable to ASP.NET and ASP.NET MVC chart series.

For more information on customizing the crosshair cursor, refer to Tooltip and Crosshair Cursor.

See Also