SharpPlot.YDateFormat Property

Set Date picture (Y axis labels).

public string YDateFormat {get; set;}

Example

sp.YDateFormat = "MMM-yyy";

Note that newlines are accepted in the format string to allow multi-line labels to be created easily for timeseries axes:

sp.YDateFormat = "MMMM\nyyyy";

This will show each label split onto 2 lines.

See also ...

SharpPlot Members | Using Date and Time Axes