DataPoint Class
Represents a chart series data point.
- Inheritance:
- System.ObjectDataPoint
Properties
DataLabel
Gets the settings for the data label for data point.
public ChartDataLabels DataLabel { get; }
Public ReadOnly Property DataLabel As ChartDataLabels
Property Value
The settings for the data labels for single data point.
Fill
Gets or sets the fill formatting options.
Property Value
The fill formatting options.
Index
Gets the index.
Property Value
- System.Int32
InvertIfNegative
Gets or sets a value indicating whether colors should be inverted if the data point value is negative.
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.
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.
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.
Property Value
The outline formatting options.
Text
Gets the textual representation of the data point.
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.
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.