Adapting the styles

private void ChangeChannelSettings(Channel channel)
{
  SeriesStyle seriesStyle =   channel.SubMember.OfType<ChannelStyle>().First().SubMember.OfType<SeriesStyle>().First();
  seriesStyle.DisplayColor = Color.Green;
  seriesStyle.MarkColor = Color.DarkGreen;
  seriesStyle.LineWidth = 2;
}

Each of the elements created has "Style" properties as a sub-member, containing all the properties that can also be seen in the corresponding properties window in Visual Studio. For example, color and line width can be assigned in the style classes of a channel.

Overview of the various style hierarchies. The subordinate classes are always located in the SubMember lists of the superordinate class.

Chart

AxisGroup

Axis

Channel