SharpPlot.Heading Property

Set Heading text. This is centred over the top of the chart, and wrapped within the chart margins.

public string Heading {get; set;}

Example

sp.Heading = "Main Chart Title";

It is centred by default above the chart. New lines are forced with “\n” in the text. You can also make a second heading line in a different font by specifying a subhead:

sp.SubHeading = "This is a subordinate heading";

Heading and subhead share the same placement, but you can set the subhead font independently.

See also ...

SharpPlot Members | HeadingLineSpacing Property | HeadingStyle Property | Subheading Property