[]
        
(Showing Draft Content)

C1.WPF.C1Chart.Axis.AnnoCreated

AnnoCreated Event

Fires when annotation label was created.

Namespace: C1.WPF.C1Chart
Assembly: C1.WPF.C1Chart.4.6.2.dll
Syntax
public event AnnoCreatedEventHandler AnnoCreated
Returns
Type Description
AnnoCreatedEventHandler Fires when annotation label was created.
Remarks

In the event handler it's possible to customize appearance of the label created by default.

Examples

The following code sets color of labels depending on its values.

chart.View.AxisY.AnnoCreated += (s, e) =>
  {
    var label = (TextBlock)e.Label;
    if (e.Value >= 0)
      label.Foreground = Brushes.Red;
    else
      label.Foreground = Brushes.Blue;
  };