This example demonstrates how create and customize a constant line at runtime. Since constant lines belong to a diagram's axis, you need to cast the diagram object to the appropriate diagram's type.