ChartAxis constructor

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

Creating an argument constructor of ChartAxis class.

Implementation

const ChartAxis({
  Key? key,
  this.name,
  this.plotOffset = 0,
  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);