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


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace : Chart Class
A control used to display DataPoints on a 2D chart. 
Object Model
Chart ClassAxis ClassLegend ClassAxis Class
Syntax
'Usage
 
Dim instance As Chart
Remarks

A Chart can contain multiple Series; each of those Series can be customized as seen fit.

All of the Chart's parts, like its AxisLegend, etc., can also be customized as needed.

Note that Xceed's Chart currently supports line charts & bar charts only.

Example
The following code would display this control:
<xctk:Chart ShowLegend="True">
  <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:Series>
      <xctk:Series.DataPoints>
        <xctk:DataPoint X="0"
                        Y="56"/>
        <xctk:DataPoint X="1"
                        Y="32"/>
        <xctk:DataPoint X="2"
                        Y="42"/>
        <xctk:DataPoint X="3"
                        Y="58"/>
        <xctk:DataPoint X="4"
                        Y="41"/>
        <xctk:DataPoint X="5"
                        Y="68"/>
        <xctk:DataPoint X="6"
                        Y="39"/>
      </xctk:Series.DataPoints>
    </xctk:Series>
    <xctk:Series>
      <xctk:Series.DataPoints>
        <xctk:DataPoint X="0"
                        Y="36"/>
        <xctk:DataPoint X="1"
                        Y="42"/>
        <xctk:DataPoint X="2"
                        Y="52"/>
        <xctk:DataPoint X="3"
                        Y="28"/>
        <xctk:DataPoint X="4"
                        Y="31"/>
        <xctk:DataPoint X="5"
                        Y="78"/>
        <xctk:DataPoint X="6"
                        Y="29"/>
      </xctk:Series.DataPoints>
    </xctk:Series>
  </xctk:Chart.Series>
</xctk:Chart>
Inheritance Hierarchy

System.Object
   Microsoft.Maui.Controls.BindableObject
      Microsoft.Maui.Controls.Element
         Microsoft.Maui.Controls.NavigableElement
            Microsoft.Maui.Controls.VisualElement
               Microsoft.Maui.Controls.View
                  Microsoft.Maui.Controls.Compatibility.Layout
                     Microsoft.Maui.Controls.TemplatedView
                        Xceed.Maui.Toolkit.Control
                           Xceed.Maui.Toolkit.Chart

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

Chart Members
Xceed.Maui.Toolkit Namespace