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


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


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

See also ...

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

Send comments on this topic
© Dyalog Ltd 2016