Class FinancialTickGenerator
- Namespace
- ScottPlot.TickGenerators
- Assembly
- ScottPlot.dll
Experimental tick generator designed for displaying financial time series data where values are evenly spaced visually despite having DateTimes which may contain gaps.
public class FinancialTickGenerator : ITickGenerator
- Inheritance
-
FinancialTickGenerator
- Implements
- Inherited Members
- Extension Methods
Constructors
FinancialTickGenerator(DateTime[])
Experimental tick generator designed for displaying financial time series data where values are evenly spaced visually despite having DateTimes which may contain gaps.
public FinancialTickGenerator(DateTime[] dates)
Parameters
datesDateTime[]
Properties
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; }
Property Value
- Tick[]
Methods
Regenerate(CoordinateRange, Edge, PixelLength, Paint, LabelStyle)
Generate ticks based on the current settings and store the result in Ticks
public void Regenerate(CoordinateRange range, Edge edge, PixelLength size, Paint paint, LabelStyle labelStyle)
Parameters
rangeCoordinateRangeedgeEdgesizePixelLengthpaintPaintlabelStyleLabelStyle