Back to Devexpress

MultiDimensionalData.GetAxisPoints(String) Method

dashboard-devexpress-dot-dashboardcommon-dot-viewerdata-dot-multidimensionaldata-dot-getaxispoints-x28-system-dot-string-x29.md

latest6.2 KB
Original Source

MultiDimensionalData.GetAxisPoints(String) Method

Gets data points belonging to the specified axis.

Namespace : DevExpress.DashboardCommon.ViewerData

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public ReadOnlyCollection<AxisPoint> GetAxisPoints(
    string axisName
)
vb
Public Function GetAxisPoints(
    axisName As String
) As ReadOnlyCollection(Of AxisPoint)

Parameters

NameTypeDescription
axisNameString

A string value returned by the DashboardDataAxisNames class that specifies the name of the data axis.

|

Returns

TypeDescription
ReadOnlyCollection<AxisPoint>

The collection of AxisPoint objects representing data points belonging to the specified axis.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetAxisPoints(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-dashboard-obtain-dashboard-item-client-data/CS/Dashboard_ClientDataCards_Win/Form1.cs#L35

csharp
foreach (AxisPoint point in
    clickedItemData.GetAxisPoints(DashboardDataAxisNames.SparklineAxis)) {
        DataRow row = dataSource.NewRow();

wpf-dashboard-how-to-obtain-clicked-item-data/CS/Dashboard_ClientDataCards_Wpf/MainWindow.xaml.cs#L38

csharp
foreach (AxisPoint point in
    clickedItemData.GetAxisPoints(DashboardDataAxisNames.SparklineAxis))
{

winforms-dashboard-add-custom-interactivity-to-dashboard/CS/Dashboard_CustomVisualInteractivity/Form1.cs#L27

csharp
e.SelectionMode = DashboardSelectionMode.Multiple;
    e.SetDefaultSelection(e.Data.GetAxisPoints(DashboardDataAxisNames.DefaultAxis)[0]);
}

wpf-dashboard-how-to-embed-devexpress-control/CS/GanttSample/GanttViewModel.cs#L68

csharp
ReadOnlyCollection<AxisPoint> gridRows = data.GetAxisPoints(DashboardDataAxisNames.DefaultAxis);
ObservableCollection<GanttTask> tasks = new ObservableCollection<GanttTask>();

winforms-dashboard-obtain-dashboard-item-client-data/VB/Dashboard_ClientDataCards_Win/Form1.vb#L35

vb
' actual/target values to the data table.
For Each point As AxisPoint In clickedItemData.GetAxisPoints(DashboardDataAxisNames.SparklineAxis)
        Dim row As DataRow = dataSource.NewRow()

wpf-dashboard-how-to-obtain-clicked-item-data/VB/Dashboard_ClientDataCards_Wpf/MainWindow.xaml.vb#L33

vb
' actual/target values to the data table.
For Each point As AxisPoint In clickedItemData.GetAxisPoints(DashboardDataAxisNames.SparklineAxis)
    Dim row As DataRow = dataSource.NewRow()

winforms-dashboard-add-custom-interactivity-to-dashboard/VB/Dashboard_CustomVisualInteractivity/Form1.vb#L27

vb
e.SelectionMode = DashboardSelectionMode.Multiple
    e.SetDefaultSelection(e.Data.GetAxisPoints(DashboardDataAxisNames.DefaultAxis)(0))
End If

wpf-dashboard-how-to-embed-devexpress-control/VB/GanttSample/GanttViewModel.vb#L78

vb
Dim gridRows As ReadOnlyCollection(Of AxisPoint) = data.GetAxisPoints(DashboardDataAxisNames.DefaultAxis)
Dim tasks As New ObservableCollection(Of GanttTask)()

See Also

GetAxisPointsByDimension(DimensionDescriptor)

MultiDimensionalData Class

MultiDimensionalData Members

DevExpress.DashboardCommon.ViewerData Namespace