skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class DataPoint

This class represents a single piece of data that is visualized in a chart series.

Inheritance
System.Object
BaseFormattableData
DataPoint
Inherited Members
BaseFormattableData.OnPropertyChanged(String)
BaseFormattableData.OnPropertyChanged(PropertyChangedEventArgs)
BaseFormattableData.IsDateTime
BaseFormattableData.Label
BaseFormattableData.IFormattableData.Value
BaseFormattableData.PropertyChanged
Namespace: Telerik.Windows.Controls.Charting
Assembly: Telerik.Windows.Controls.Charting.dll

Syntax

public class DataPoint : BaseFormattableData, INotifyPropertyChanged, IFormattableData, ILogicalItem, IWeakEventListener<PropertyChangedEventArgs>
Remarks

Each chart series consists of a related group of data points.

Constructors

DataPoint()

Initializes a new instance of the DataPoint class.

Declaration
public DataPoint()

DataPoint(DateTime)

Initializes a new instance of the DataPoint class.

Declaration
public DataPoint(DateTime valueX)
Parameters
System.DateTime valueX

The DateTime value to be shown on the X axis.

DataPoint(Double)

Initializes a new instance of the DataPoint class.

Declaration
public DataPoint(double valueY)
Parameters
System.Double valueY

The YValue to be shown on the Y axis.

DataPoint(Double, Double)

Initializes a new instance of the DataPoint class.

Declaration
public DataPoint(double valueX, double valueY)
Parameters
System.Double valueX

The value set to the XValue property.

System.Double valueY

The value set to the YValue property.

DataPoint(String, Double)

Initializes a new instance of the DataPoint class.

Declaration
public DataPoint(string categoryX, double valueY)
Parameters
System.String categoryX

The category X.

System.Double valueY

The value Y.

Properties

BubbleSize

Gets or sets a value indicating the size associated with a bubble representation of a data point.

Declaration
public double BubbleSize { get; set; }
Property Value
System.Double

Close

Gets or sets the closing stock value for financial charts.

Declaration
public double Close { get; set; }
Property Value
System.Double

DataItem

Gets or sets the original data item.

Declaration
public object DataItem { get; set; }
Property Value
System.Object

Remarks

This is only relevant for databinding scenarios.

DataSeries

Gets the DataSeries to which the current DataPoint belongs.

Declaration
public DataSeries DataSeries { get; }
Property Value
DataSeries

High

Gets or sets the highest stock value for financial charts.

Declaration
public double High { get; set; }
Property Value
System.Double

IsEmpty

Gets or sets a boolean value, indicating whether the data point should be considered empty.DataPoint.

Declaration
public bool IsEmpty { get; set; }
Property Value
System.Boolean

LabelFormat

Gets the label formatting string to be displayed.

Declaration
public override string LabelFormat { get; set; }
Property Value
System.String

The label format.

Overrides
BaseFormattableData.LabelFormat

LegendItemLabelFormat

Gets or sets the legend item label format.

Declaration
public string LegendItemLabelFormat { get; set; }
Property Value
System.String

The legend item label format.

LegendLabel

Gets or sets the string representation of this object in the ChartLegend.

Declaration
public string LegendLabel { get; set; }
Property Value
System.String

Low

Gets or sets the lowest stock value for financial charts.

Declaration
public double Low { get; set; }
Property Value
System.Double

Open

Gets or sets the opening stock value for financial charts.

Declaration
public double Open { get; set; }
Property Value
System.Double

Tooltip

Gets or sets the tooltip for the associated DataPoint.

Declaration
public string Tooltip { get; set; }
Property Value
System.String

XCategory

Gets or sets a value indicating the category of the data point relative to the horizontal axis.

Declaration
public string XCategory { get; set; }
Property Value
System.String

XValue

Gets or sets a value indicating the value of the data point relative to the horizontal axis.

Declaration
public double XValue { get; set; }
Property Value
System.Double

YValue

Gets or sets a value indicating the value of the data point relative to the vertical axis.

Declaration
public double YValue { get; set; }
Property Value
System.Double

Methods

ReceiveWeakEvent(Object, PropertyChangedEventArgs)

Receives the weak event for PropertyChanged from DataItem.

Declaration
public void ReceiveWeakEvent(object sender, PropertyChangedEventArgs args)
Parameters
System.Object sender

DataItem bound to this DataPoint.

System.ComponentModel.PropertyChangedEventArgs args

The System.ComponentModel.PropertyChangedEventArgs instance containing the event data.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.