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 = 0,
  22. double initialZoomFactor = 1,
  23. double initialZoomPosition = 0,
  24. bool enableAutoIntervalOnZooming = true,
  25. InteractiveTooltip interactiveTooltip = const InteractiveTooltip(),
  26. double? minimum,
  27. double? maximum,
  28. double? interval,
  29. double logBase = 10,
  30. String? labelFormat,
  31. NumberFormat? numberFormat,
  32. double? initialVisibleMinimum,
  33. double? initialVisibleMaximum,
  34. LabelAlignment labelAlignment = LabelAlignment.center,
  35. dynamic crossesAt,
  36. String? associatedAxisName,
  37. bool placeLabelsNearAxisLine = true,
  38. List<PlotBand> plotBands = const <PlotBand>[],
  39. int? desiredIntervals,
  40. RangeController? rangeController,
  41. double? maximumLabelWidth,
  42. double? labelsExtent,
  43. int? autoScrollingDelta,
  44. double borderWidth = 0.0,
  45. Color? borderColor,
  46. AxisBorderType axisBorderType = AxisBorderType.rectangle,
  47. MultiLevelLabelStyle multiLevelLabelStyle = const MultiLevelLabelStyle(),
  48. MultiLevelLabelFormatterCallback? multiLevelLabelFormatter,
  49. List<LogarithmicMultiLevelLabel>? multiLevelLabels,
  50. AutoScrollingMode autoScrollingMode = AutoScrollingMode.end,
  51. ChartLabelFormatterCallback? axisLabelFormatter,
  52. 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.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');