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,
  20. double? plotOffsetStart,
  21. double? plotOffsetEnd,
  22. double initialZoomFactor = 1,
  23. double initialZoomPosition = 0,
  24. InteractiveTooltip interactiveTooltip = const InteractiveTooltip(),
  25. DateTime? minimum,
  26. DateTime? maximum,
  27. double? interval,
  28. DateTime? initialVisibleMinimum,
  29. DateTime? initialVisibleMaximum,
  30. dynamic crossesAt,
  31. String? associatedAxisName,
  32. bool placeLabelsNearAxisLine = true,
  33. List<PlotBand> plotBands = const <PlotBand>[],
  34. int? desiredIntervals,
  35. RangeController? rangeController,
  36. double? maximumLabelWidth,
  37. double? labelsExtent,
  38. LabelPlacement labelPlacement = LabelPlacement.betweenTicks,
  39. DateFormat? dateFormat,
  40. DateTimeIntervalType intervalType = DateTimeIntervalType.auto,
  41. DateTimeIntervalType autoScrollingDeltaType = DateTimeIntervalType.auto,
  42. int? autoScrollingDelta,
  43. double borderWidth = 0.0,
  44. Color? borderColor,
  45. AxisBorderType axisBorderType = AxisBorderType.rectangle,
  46. MultiLevelLabelStyle multiLevelLabelStyle = const MultiLevelLabelStyle(),
  47. MultiLevelLabelFormatterCallback? multiLevelLabelFormatter,
  48. List<DateTimeCategoricalMultiLevelLabel>? multiLevelLabels,
  49. AutoScrollingMode autoScrollingMode = AutoScrollingMode.end,
  50. ChartLabelFormatterCallback? axisLabelFormatter,
  51. 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.plotOffsetStart,
  super.plotOffsetEnd,
  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,
}) : assert(
          (initialVisibleMaximum == null && initialVisibleMinimum == null) ||
              autoScrollingDelta == null,
          'Both properties have the same behavior to display the visible data points, use any one of the properties');