WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartPoint - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartPoint

    This class provides an easy interface to interact with the underlying data points contained in the IChartSeriesModel associated with the ChartSeries that contains this data. Even though you are interacting with a friendly object model, the ChartPoint itself stores no data. It simply delegates to the underlying model that the ChartSeries is displaying.

    Inheritance
    System.Object
    ChartPoint
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public class ChartPoint

    Constructors

    ChartPoint()

    Initializes a new instance of the ChartPoint class.

    Declaration
    public ChartPoint()

    ChartPoint(DateTime, Double)

    Initializes a new instance of the ChartPoint class. Used when working with ChartPoints that have a DateTime X value.

    Declaration
    public ChartPoint(DateTime date, double y)
    Parameters
    Type Name Description
    System.DateTime date

    DateTime X value of this ChartPoint.

    System.Double y

    Y value of this ChartPoint.

    ChartPoint(DateTime, Double[])

    Initializes a new instance of the ChartPoint class. Used when working with ChartPoints that have a DateTime X value.

    Declaration
    public ChartPoint(DateTime date, double[] yValues)
    Parameters
    Type Name Description
    System.DateTime date

    DateTime X value of this ChartPoint.

    System.Double[] yValues

    Y values of this ChartPoint.

    ChartPoint(Double, DateTime)

    Initializes a new instance of the ChartPoint class. Used when working with ChartPoints that have a single associated DateTime Y value.

    Declaration
    public ChartPoint(double x, DateTime date)
    Parameters
    Type Name Description
    System.Double x

    X value of this ChartPoint.

    System.DateTime date

    DateTime Y value pertaining to this ChartPoint.

    ChartPoint(Double, DateTime[])

    Initializes a new instance of the ChartPoint class. Used when working with ChartPoints that have DateTime Y values.

    Declaration
    public ChartPoint(double x, DateTime[] dates)
    Parameters
    Type Name Description
    System.Double x

    X value of this ChartPoint.

    System.DateTime[] dates

    DateTime Y values of this ChartPoint.

    ChartPoint(Double, Double)

    Initializes a new instance of the ChartPoint class. Used when working with ChartPoints that have only one Y value.

    Declaration
    public ChartPoint(double x, double y)
    Parameters
    Type Name Description
    System.Double x

    X value of this ChartPoint.

    System.Double y

    Y value of this ChartPoint.

    ChartPoint(Double, Double, String)

    Declaration
    public ChartPoint(double x, double y, string category)
    Parameters
    Type Name Description
    System.Double x
    System.Double y
    System.String category

    ChartPoint(Double, Double[])

    Initializes a new instance of the ChartPoint class.

    Declaration
    public ChartPoint(double x, double[] y)
    Parameters
    Type Name Description
    System.Double x

    X value of this ChartPoint.

    System.Double[] y

    Y values pertaining to this ChartPoint. More than one Y value can be associated with a ChartPoint.

    ChartPoint(Double, Double[], String)

    Initializes a new instance of the ChartPoint class.

    Declaration
    public ChartPoint(double x, double[] y, string category)
    Parameters
    Type Name Description
    System.Double x

    X value of this ChartPoint.

    System.Double[] y

    Y values pertaining to this ChartPoint. More than one Y value can be associated with a ChartPoint.

    System.String category

    Category value of this ChartPoint.

    Fields

    Empty

    Signifies the empty point.

    Declaration
    public static ChartPoint Empty
    Field Value
    Type Description
    ChartPoint

    Properties

    Category

    Gets or sets the Category values associated with this point.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public string Category { get; set; }
    Property Value
    Type Description
    System.String

    The Category values.

    DateX

    Gets or sets the X value associated with this point as a DateTime value.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public DateTime DateX { get; set; }
    Property Value
    Type Description
    System.DateTime

    The date X.

    IsEmpty

    Indicates whether this point should be plotted.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public bool IsEmpty { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is empty; otherwise, false.

    X

    Gets or sets the X value associated with this point.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public double X { get; set; }
    Property Value
    Type Description
    System.Double

    The X.

    YValues

    Gets or sets the Y values associated with this point.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public double[] YValues { get; set; }
    Property Value
    Type Description
    System.Double[]

    The Y values.

    Methods

    GetYValuesAsDateTime()

    Returns Y values associated with this point as DateTime values.

    Declaration
    public DateTime[] GetYValuesAsDateTime()
    Returns
    Type Description
    System.DateTime[]

    ToString()

    Returns a System.String that represents the current System.Object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A System.String that represents the current System.Object.

    Overrides
    System.Object.ToString()
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved