Skip to main content

Class ChartAnnotation

Namespace: VelloSharp.ChartEngine.Annotations
Assembly: VelloSharp.ChartEngine.dll

Base type for chart annotations rendered on top of chart panes.

public abstract record ChartAnnotation : IEquatable<ChartAnnotation>

Inheritance

objectChartAnnotation

Derived

CalloutAnnotation, GradientZoneAnnotation, HorizontalLineAnnotation, TimeRangeAnnotation, ValueZoneAnnotation, VerticalLineAnnotation

Implements

IEquatable<ChartAnnotation>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

ChartAnnotation(AnnotationKind, string?)

protected ChartAnnotation(AnnotationKind kind, string? label = null)

Parameters

kind AnnotationKind

label string?

Properties

Color

Gets or sets the primary color for the annotation (line, callout border, etc.).

public ChartColor? Color { get; init; }

Property Value

ChartColor?

Kind

Gets the annotation kind.

public AnnotationKind Kind { get; }

Property Value

AnnotationKind

Label

Gets an optional label rendered alongside the annotation.

public string? Label { get; init; }

Property Value

string?

TargetPaneId

Gets or sets the pane identifier this annotation targets. When null, the annotation applies to all panes.

public string? TargetPaneId { get; init; }

Property Value

string?