Xceed Toolkit for Maui v2.0 Documentation
DataPoint Class
Members  Example 


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace : DataPoint Class
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

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

Reference

DataPoint Members
Xceed.Maui.Toolkit Namespace