blazor-devexpress-dot-blazor-3cbbf982.md
Lists selection modes for series points.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public enum ChartSeriesPointSelectionMode
| Name | Description | Image |
|---|---|---|
AllPointsForArgument |
All points that have the same argument are selected when a user selects a point.
|
|
| AllPoints |
All points that belong to the series are selected when a user selects a point.
|
|
| Point |
Only a clicked point is selected.
|
|
| None |
Point selection is disabled.
| |
The following properties accept/return ChartSeriesPointSelectionMode values:
Specify the DxChart.PointSelectionMode property to enable point selection at the chart level.
You can also specify the DxChart.SeriesSelectionMode property to allow users to select entire series.
Note
For discrete series (for example, bars), the DxChart.PointSelectionMode property has a higher priority over the DxChart.SeriesSelectionMode property. This means that these properties are not applied simultaneously.
The following example enables selection for a line chart:
<DxChart Data="@dataPoints"
SeriesSelectionMode=ChartSelectionMode.Single
PointSelectionMode=ChartSelectionMode.Multiple>
<DxChartLineSeries ArgumentField="@((DataPoint i) => i.Arg)"
ValueField="@((DataPoint i) => i.Value1)"
Name="Series 1"
HoverMode=ChartContinuousSeriesHoverMode.None
SelectionMode=ChartContinuousSeriesSelectionMode.Series>
<DxChartSeriesPoint HoverMode=ChartSeriesPointHoverMode.None
SelectionMode=ChartSeriesPointSelectionMode.AllPointsForArgument />
</DxChartLineSeries>
@* ...*@
</DxChart>
See Also