EndPointsTimeAxisSpec constructor
const
EndPointsTimeAxisSpec({
- RenderSpec<
DateTime> ? renderSpec, - DateTimeTickProviderSpec? tickProviderSpec,
- DateTimeTickFormatterSpec? tickFormatterSpec,
- bool? showAxisLine,
- DateTimeExtents? viewport,
Creates a AxisSpec that specialized for timeseries charts.
renderSpec
spec used to configure how the ticks and labels
actually render. Possible values are GridlineRendererSpec,
SmallTickRendererSpec & NoneRenderSpec. Make sure that the
Implementation
const EndPointsTimeAxisSpec({
RenderSpec<DateTime>? renderSpec,
DateTimeTickProviderSpec? tickProviderSpec,
DateTimeTickFormatterSpec? tickFormatterSpec,
bool? showAxisLine,
DateTimeExtents? viewport,
}) : super(
renderSpec: renderSpec ??
const SmallTickRendererSpec<DateTime>(
labelAnchor: TickLabelAnchor.inside,
labelOffsetFromTickPx: 0),
tickProviderSpec:
tickProviderSpec ?? const DateTimeEndPointsTickProviderSpec(),
tickFormatterSpec: tickFormatterSpec,
showAxisLine: showAxisLine,
viewport: viewport);