Skip to main content
Version: 4.2

ChartAnnotation

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Adds a reference line or bounded band to a chart axis.

public class ChartAnnotation
  • Axis Gets or sets the coordinate axis.
  • Value Gets or sets the line coordinate or band starting coordinate.
  • EndValue Gets or sets the band ending coordinate; null draws a line.

Example:

chart.Annotations.Add(new ChartAnnotation { Value = 80, Text = "SLA", Tone = ChartTone.Danger });

Constructors​

Instance member ChartAnnotation()​

Initializes a new instance of ChartAnnotation.

Properties​

Instance member Axis​

ChartAnnotationAxis: Gets or sets the coordinate axis. (Default: Y)

Instance member EndValue​

Nullable<Double>: Gets or sets the band ending coordinate; null draws a line.

Instance member Text​

String: Gets or sets the annotation label. (Default: "")

Instance member Tone​

ChartTone: Gets or sets the semantic annotation color. (Default: Warning)

Instance member Value​

Double: Gets or sets the line coordinate or band starting coordinate. (Default: 0)