ChartAxis constructor

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

Creating an argument constructor of ChartAxis class.

Implementation

const ChartAxis({
  Key? key,
  this.name,
  this.plotOffset,
  this.plotOffsetStart,
  this.plotOffsetEnd,
  this.isVisible = true,
  this.anchorRangeToVisiblePoints = true,
  this.title = const AxisTitle(),
  this.axisLine = const AxisLine(),
  this.rangePadding = ChartRangePadding.auto,
  this.labelRotation = 0,
  this.labelPosition = ChartDataLabelPosition.outside,
  this.labelAlignment = LabelAlignment.center,
  this.tickPosition = TickPosition.outside,
  this.majorTickLines = const MajorTickLines(),
  this.minorTickLines = const MinorTickLines(),
  this.labelStyle,
  this.labelIntersectAction = AxisLabelIntersectAction.hide,
  this.desiredIntervals,
  this.majorGridLines = const MajorGridLines(),
  this.minorGridLines = const MinorGridLines(),
  this.maximumLabels = 3,
  this.minorTicksPerInterval = 0,
  this.isInversed = false,
  this.opposedPosition = false,
  this.edgeLabelPlacement = EdgeLabelPlacement.none,
  this.enableAutoIntervalOnZooming = true,
  this.initialZoomFactor = 1,
  this.initialZoomPosition = 0,
  this.interactiveTooltip = const InteractiveTooltip(),
  this.interval,
  this.crossesAt,
  this.associatedAxisName,
  this.placeLabelsNearAxisLine = true,
  this.plotBands = const <PlotBand>[],
  this.rangeController,
  this.maximumLabelWidth,
  this.labelsExtent,
  this.autoScrollingDelta,
  this.autoScrollingMode = AutoScrollingMode.end,
  this.borderWidth = 0.0,
  this.borderColor,
  this.axisBorderType = AxisBorderType.rectangle,
  this.multiLevelLabelStyle = const MultiLevelLabelStyle(),
  this.multiLevelLabelFormatter,
  this.axisLabelFormatter,
}) : super(key: key);