SharpPlot Reference > SharpPlot 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;}


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 ...

Formatting text with simple HTML tags | SharpPlot Members | SharpPlot.HeadingLineSpacing Property | SharpPlot.HeadingStyle Property | SharpPlot.Subheading Property | SharpPlot.SetNewline Method

Send comments on this topic
© Dyalog Ltd 2016