Class DateTimeAutomatic
- Namespace
- ScottPlot.TickGenerators
- Assembly
- ScottPlot.dll
public class DateTimeAutomatic : IDateTimeTickGenerator, ITickGenerator
- Inheritance
-
DateTimeAutomatic
- Implements
- Inherited Members
- Extension Methods
Properties
LabelFormatter
If assigned, this function will be used to create tick labels
public Func<DateTime, string>? LabelFormatter { get; set; }
Property Value
MaxTickCount
Do not generate more than this number of ticks
public int MaxTickCount { get; set; }
Property Value
Ticks
Ticks to display the next time the axis is rendered. This array and its contents should not be modified directly. Call Regenerate() to update this array.
public Tick[] Ticks { get; set; }
Property Value
- Tick[]
TimeUnit
public ITimeUnit? TimeUnit { get; }
Property Value
Methods
ConvertToCoordinateSpace(IEnumerable<DateTime>)
public IEnumerable<double> ConvertToCoordinateSpace(IEnumerable<DateTime> dates)
Parameters
dates
IEnumerable<DateTime>
Returns
Regenerate(CoordinateRange, Edge, PixelLength, SKPaint, LabelStyle)
Generate ticks based on the current settings and store the result in Ticks
public void Regenerate(CoordinateRange range, Edge edge, PixelLength size, SKPaint paint, LabelStyle labelStyle)
Parameters
range
CoordinateRangeedge
Edgesize
PixelLengthpaint
SKPaintlabelStyle
LabelStyle