SharpPlot Reference > SharpPlot Methods > SetXLabels Method

SharpPlot.SetXLabels Method

Set X labels given a string array or a simple string. Arrays of numeric values are formatted using the current setting of the label format string. Dates (OLE format integers or YYYYMMDD composite values) will be formatted using the current XDateFormat if the XAxis style is set to Date at the point where this method is called.

Example

sp.SetXLabels(new string[]{"North","South"});

Overloads

If an array of arrays of strings is given, these are treated as the rows of a multi-line set of labels. It may be appropriate to use the Spanned style to have repeated elements merged across the axis.

See also ...

Formatting text with simple HTML tags | SharpPlot Members | SharpPlot.XLabelFormat Property


Send comments on this topic
© Dyalog Ltd 2016