Adapting the styles

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.

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

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

Chart

AxisGroup

Axis

Channel