Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / DataPoint Class
Members Example


In This Topic
    DataPoint Class
    In This Topic
    Represents the data that is needed to display a point on a Chart.
    Syntax
    'Declaration
     
    
    Public Class DataPoint 
       Inherits Microsoft.Maui.Controls.BindableObject
    'Usage
     
    
    Dim instance As DataPoint
    public class DataPoint : Microsoft.Maui.Controls.BindableObject 
    Remarks

    To be visible, a DataPoint must have a value in both its XY properties; otherwise, it needs to have a value in its Text property, along with a value in either its X or Y property.

    Note that using the X property will put the value on the Chart's horizontal Axis, while using the Y property will put it on the vertical Axis.

    Example
    <xctk:Chart.Series>
      <xctk:Series>
        <xctk:Series.DataPoints>
          <xctk:DataPoint X="0"
                          Y="44"/>
          <xctk:DataPoint X="1"
                          Y="64"/>
          <xctk:DataPoint X="2"
                          Y="60"/>
          <xctk:DataPoint X="3"
                          Y="32"/>
          <xctk:DataPoint X="4"
                          Y="52"/>
          <xctk:DataPoint X="5"
                          Y="72"/>
          <xctk:DataPoint X="6"
                          Y="32"/>
        </xctk:Series.DataPoints>
      </xctk:Series>
    </xctk:Chart.Series>
    Inheritance Hierarchy

    System.Object
       Microsoft.Maui.Controls.BindableObject
          Xceed.Maui.Toolkit.DataPoint

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Fields
     NameDescription
    Public Fieldstatic (Shared in Visual Basic)  
    Public Fieldstatic (Shared in Visual Basic)  
    Public Fieldstatic (Shared in Visual Basic)  
    Top
    Public Properties
     NameDescription
    Public Property (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Property (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public PropertyGets or sets the text associated with the DataPoint.  
    Public PropertyGets or sets the X coordinate that will allow the DataPoint to be displayed on the Chart's horizontal Axis.  
    Public PropertyGets or sets the Y coordinate that will allow the DataPoint to be displayed on the Chart's vertical Axis.  
    Top
    Public Methods
    Public Events
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also