Reference > Properties > YDateFormat Property

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 | Formatting text with simple HTML tags | Using Date and Time Axes


Send comments on this topic
© Dyalog Ltd 2013