DateTimeCategoryAxis constructor

const DateTimeCategoryAxis({
  1. Key? key,
  2. String? name,
  3. bool isVisible = true,
  4. AxisTitle title = const AxisTitle(),
  5. AxisLine axisLine = const AxisLine(),
  6. ChartRangePadding rangePadding = ChartRangePadding.auto,
  7. EdgeLabelPlacement edgeLabelPlacement = EdgeLabelPlacement.none,
  8. ChartDataLabelPosition labelPosition = ChartDataLabelPosition.outside,
  9. TickPosition tickPosition = TickPosition.outside,
  10. int labelRotation = 0,
  11. AxisLabelIntersectAction labelIntersectAction = AxisLabelIntersectAction.hide,
  12. LabelAlignment labelAlignment = LabelAlignment.center,
  13. bool isInversed = false,
  14. bool opposedPosition = false,
  15. int maximumLabels = 3,
  16. MajorTickLines majorTickLines = const MajorTickLines(),
  17. MajorGridLines majorGridLines = const MajorGridLines(),
  18. TextStyle? labelStyle,
  19. double plotOffset = 0,
  20. double initialZoomFactor = 1,
  21. double initialZoomPosition = 0,
  22. InteractiveTooltip interactiveTooltip = const InteractiveTooltip(),
  23. DateTime? minimum,
  24. DateTime? maximum,
  25. double? interval,
  26. DateTime? initialVisibleMinimum,
  27. DateTime? initialVisibleMaximum,
  28. dynamic crossesAt,
  29. String? associatedAxisName,
  30. bool placeLabelsNearAxisLine = true,
  31. List<PlotBand> plotBands = const <PlotBand>[],
  32. int? desiredIntervals,
  33. RangeController? rangeController,
  34. double? maximumLabelWidth,
  35. double? labelsExtent,
  36. LabelPlacement labelPlacement = LabelPlacement.betweenTicks,
  37. DateFormat? dateFormat,
  38. DateTimeIntervalType intervalType = DateTimeIntervalType.auto,
  39. DateTimeIntervalType autoScrollingDeltaType = DateTimeIntervalType.auto,
  40. int? autoScrollingDelta,
  41. double borderWidth = 0.0,
  42. Color? borderColor,
  43. AxisBorderType axisBorderType = AxisBorderType.rectangle,
  44. MultiLevelLabelStyle multiLevelLabelStyle = const MultiLevelLabelStyle(),
  45. MultiLevelLabelFormatterCallback? multiLevelLabelFormatter,
  46. List<DateTimeCategoricalMultiLevelLabel>? multiLevelLabels,
  47. AutoScrollingMode autoScrollingMode = AutoScrollingMode.end,
  48. ChartLabelFormatterCallback? axisLabelFormatter,
  49. dynamic onRendererCreated(
    1. DateTimeCategoryAxisController
    )?,
})

Creating an argument constructor of DateTimeCategoryAxis class.

Implementation

const DateTimeCategoryAxis({
  super.key,
  super.name,
  super.isVisible = true,
  super.title,
  super.axisLine,
  super.rangePadding,
  super.edgeLabelPlacement,
  super.labelPosition,
  super.tickPosition,
  super.labelRotation,
  super.labelIntersectAction,
  super.labelAlignment,
  super.isInversed,
  super.opposedPosition,
  super.maximumLabels,
  super.majorTickLines,
  super.majorGridLines,
  super.labelStyle,
  super.plotOffset,
  super.initialZoomFactor,
  super.initialZoomPosition,
  super.interactiveTooltip,
  this.minimum,
  this.maximum,
  super.interval,
  this.initialVisibleMinimum,
  this.initialVisibleMaximum,
  super.crossesAt,
  super.associatedAxisName,
  super.placeLabelsNearAxisLine,
  super.plotBands,
  super.desiredIntervals,
  super.rangeController,
  super.maximumLabelWidth,
  super.labelsExtent,
  this.labelPlacement = LabelPlacement.betweenTicks,
  this.dateFormat,
  this.intervalType = DateTimeIntervalType.auto,
  this.autoScrollingDeltaType = DateTimeIntervalType.auto,
  super.autoScrollingDelta,
  super.borderWidth,
  super.borderColor,
  super.axisBorderType,
  super.multiLevelLabelStyle,
  super.multiLevelLabelFormatter,
  this.multiLevelLabels,
  super.autoScrollingMode,
  super.axisLabelFormatter,
  this.onRendererCreated,
});