SharpPlot Tutorials > Style Examples > Duration Label formatting Duration Label formatting
This style may be used on either the X or Y axis to format elapsed times in seconds.
sp.YAxisStyle = YAxisStyles.Duration;
XTimeFormat or YTimeFormat may be used to format the durations, with the special character ‘D’ standing for number of days (‘d’ is useless for durations because it is the day of the month).
Tickmarks, datumlines etc are given in the units of the data here, that is seconds.
See also ...Using Date and Time axes | SharpPlot.XAxisStyle Property | SharpPlot.XTimeFormat Property | SharpPlot.YAxisStyle Property | SharpPlot.YTimeFormat Property
Send comments on this topic © Dyalog Ltd 2021
|