GemBox.Spreadsheet
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    DataPoint Class

    Namespace:
    GemBox.Spreadsheet.Charts
    Assembly:
    GemBox.Spreadsheet.dll

    Represents a chart series data point.

    • C#
    • VB.NET
    public sealed class DataPoint
    Public NotInheritable Class DataPoint
    Inheritance:
    System.Object
    DataPoint

    Properties

    DataLabel

    Gets the settings for the data label for data point.

    • C#
    • VB.NET
    public ChartDataLabels DataLabel { get; }
    Public ReadOnly Property DataLabel As ChartDataLabels
    Property Value
    ChartDataLabels

    The settings for the data labels for single data point.

    Fill

    Gets or sets the fill formatting options.

    • C#
    • VB.NET
    public FillFormat Fill { get; set; }
    Public Property Fill As FillFormat
    Property Value
    FillFormat

    The fill formatting options.

    Index

    Gets the index.

    • C#
    • VB.NET
    public int Index { get; }
    Public ReadOnly Property Index As Integer
    Property Value
    System.Int32

    InvertIfNegative

    Gets or sets a value indicating whether colors should be inverted if the data point value is negative.

    • C#
    • VB.NET
    public bool InvertIfNegative { get; set; }
    Public Property InvertIfNegative As Boolean
    Property Value
    System.Boolean

    true if colors should be inverted; otherwise, false.

    IsLegendEntryVisible

    Gets or sets a value indicating whether legend entry for this data point instance is visible.

    • C#
    • VB.NET
    public bool IsLegendEntryVisible { get; set; }
    Public Property IsLegendEntryVisible As Boolean
    Property Value
    System.Boolean

    true if legend entry for this data point instance is visible; otherwise, false.

    Remarks

    Default value of this property is true.

    For charts other than PieChart and DoughnutChart use IsLegendEntryVisible.

    NumericValue

    Gets the numeric value of the data point, if applicable. Store the value to a variable if used frequently.

    • C#
    • VB.NET
    public double? NumericValue { get; }
    Public ReadOnly Property NumericValue As Double?
    Property Value
    System.Nullable<System.Double>

    The numeric value of the data point, if applicable.

    Remarks

    Accessing this property is computationally intensive. It is advisable to cache the value in a local variable if it needs to be accessed multiple times.

    Outline

    Gets or sets the outline formatting options.

    • C#
    • VB.NET
    public LineFormat Outline { get; set; }
    Public Property Outline As LineFormat
    Property Value
    LineFormat

    The outline formatting options.

    Text

    Gets the textual representation of the data point.

    • C#
    • VB.NET
    public string Text { get; }
    Public ReadOnly Property Text As String
    Property Value
    System.String

    The textual representation of the data point.

    Remarks

    Accessing this property is computationally intensive. It is advisable to cache the value in a local variable if it needs to be accessed multiple times.

    Value

    Gets the value of the data point, if applicable. Store the value to a variable if used frequently.

    • C#
    • VB.NET
    public object Value { get; }
    Public ReadOnly Property Value As Object
    Property Value
    System.Object

    The value of the data point, if applicable.

    Remarks

    Accessing this property is computationally intensive. It is advisable to cache the value in a local variable if it needs to be accessed multiple times.

    Methods

    Delete()

    Deletes the data point.

    • C#
    • VB.NET
    public void Delete()
    Public Sub Delete
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.