Reference > Methods > SetYLabels Method

SharpPlot.SetYLabels Method

Set Y labels given a string array or a simple string or an array of numbers. Numbers are formatted using the current label format string or wrapped into the available space in the left margin if no formatter is given.

Dates (OLE format integers or YYYYMMDD composite values) will be formatted using the current YDateFormat if the YAxis style is set to Date at the point where this method is called.

Example

sp.SetYLabels(new string[]{"Nuts","Bolts","Washers"});

Overloads

If an array of arrays of strings is given, these are treated as the rows of a multi-line set of labels.

See also ...

SharpPlot Members | YLabelFormat Property | Formatting text with simple HTML tags


Send comments on this topic
© Dyalog Ltd 2013