EndPointsTimeAxisSpec constructor

const EndPointsTimeAxisSpec({
  1. RenderSpec<DateTime>? renderSpec,
  2. DateTimeTickProviderSpec? tickProviderSpec,
  3. DateTimeTickFormatterSpec? tickFormatterSpec,
  4. bool? showAxisLine,
  5. 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,
  super.tickFormatterSpec,
  super.showAxisLine,
  super.viewport,
}) : super(
        renderSpec: renderSpec ??
            const SmallTickRendererSpec<DateTime>(
              labelAnchor: TickLabelAnchor.inside,
              labelOffsetFromTickPx: 0,
            ),
        tickProviderSpec:
            tickProviderSpec ?? const DateTimeEndPointsTickProviderSpec(),
      );