SharpPlot Reference > SharpPlot 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 ...Using Date and Time axes | Formatting text with simple HTML tags | SharpPlot Members
Send comments on this topic © Dyalog Ltd 2021
|