LogarithmicAxis constructor

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

Creating an argument constructor of LogarithmicAxis class.

Implementation

const LogarithmicAxis({
  super.key,
  super.name,
  super.isVisible = true,
  super.anchorRangeToVisiblePoints = true,
  super.title,
  super.axisLine,
  super.labelIntersectAction,
  super.labelRotation,
  super.labelPosition,
  super.tickPosition,
  super.isInversed,
  super.opposedPosition,
  super.minorTicksPerInterval,
  super.maximumLabels,
  super.majorTickLines,
  super.minorTickLines,
  super.majorGridLines,
  super.minorGridLines,
  super.edgeLabelPlacement,
  super.labelStyle,
  super.plotOffset,
  super.plotOffsetStart,
  super.plotOffsetEnd,
  super.initialZoomFactor,
  super.initialZoomPosition,
  super.enableAutoIntervalOnZooming,
  super.interactiveTooltip,
  this.minimum,
  this.maximum,
  super.interval,
  this.logBase = 10,
  this.labelFormat,
  this.numberFormat,
  this.initialVisibleMinimum,
  this.initialVisibleMaximum,
  super.labelAlignment,
  super.crossesAt,
  super.associatedAxisName,
  super.placeLabelsNearAxisLine,
  super.plotBands,
  super.desiredIntervals,
  super.rangeController,
  super.maximumLabelWidth,
  super.labelsExtent,
  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');