Reference > Properties > Heading Property

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 generally forced with “\n” in the text, but you can choose your own line-break character if this is inconvenient.

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 | HeadingLineSpacing | HeadingStyle | Subheading | SetNewline | Formatting


Send comments on this topic
© Dyalog Ltd 2013