| Contents > SharpPlot > Properties | Index |
SharpPlot.XCaption Property
Set X caption. The X-axis caption is written below the end of the axis, spaced to allow room for labels (if any).
public string XCaption {get; set;}
Example
sp.XCaption = "Weeks (2005)";
You can control the positioning with the X-axis style to place the caption centred (below the axis) or at the right-hand end. The caption text will be split over more than one line if you include a \n in the text, for example:
sp.XCaption = "Elapsed days\nfrom start of project";
Use the CaptionLineSpacing property to control the vertical pitch here.
See also ...
SharpPlot Members | CaptionLineSpacing Property | CaptionStyle Property | SetXCaptionFont Method
