LogarithmicAxis constructor
const
LogarithmicAxis({
- Key? key,
- String? name,
- bool isVisible = true,
- bool anchorRangeToVisiblePoints = true,
- AxisTitle title = const AxisTitle(),
- AxisLine axisLine = const AxisLine(),
- AxisLabelIntersectAction labelIntersectAction = AxisLabelIntersectAction.hide,
- int labelRotation = 0,
- ChartDataLabelPosition labelPosition = ChartDataLabelPosition.outside,
- TickPosition tickPosition = TickPosition.outside,
- bool isInversed = false,
- bool opposedPosition = false,
- int minorTicksPerInterval = 0,
- int maximumLabels = 3,
- MajorTickLines majorTickLines = const MajorTickLines(),
- MinorTickLines minorTickLines = const MinorTickLines(),
- MajorGridLines majorGridLines = const MajorGridLines(),
- MinorGridLines minorGridLines = const MinorGridLines(),
- EdgeLabelPlacement edgeLabelPlacement = EdgeLabelPlacement.none,
- TextStyle? labelStyle,
- double? plotOffset,
- double? plotOffsetStart,
- double? plotOffsetEnd,
- double initialZoomFactor = 1,
- double initialZoomPosition = 0,
- bool enableAutoIntervalOnZooming = true,
- InteractiveTooltip interactiveTooltip = const InteractiveTooltip(),
- double? minimum,
- double? maximum,
- double? interval,
- double logBase = 10,
- String? labelFormat,
- NumberFormat? numberFormat,
- double? initialVisibleMinimum,
- double? initialVisibleMaximum,
- LabelAlignment labelAlignment = LabelAlignment.center,
- dynamic crossesAt,
- String? associatedAxisName,
- bool placeLabelsNearAxisLine = true,
- List<
PlotBand> plotBands = const <PlotBand>[], - int? desiredIntervals,
- RangeController? rangeController,
- double? maximumLabelWidth,
- double? labelsExtent,
- int? autoScrollingDelta,
- double borderWidth = 0.0,
- Color? borderColor,
- AxisBorderType axisBorderType = AxisBorderType.rectangle,
- MultiLevelLabelStyle multiLevelLabelStyle = const MultiLevelLabelStyle(),
- MultiLevelLabelFormatterCallback? multiLevelLabelFormatter,
- List<
LogarithmicMultiLevelLabel> ? multiLevelLabels, - AutoScrollingMode autoScrollingMode = AutoScrollingMode.end,
- ChartLabelFormatterCallback? axisLabelFormatter,
- dynamic onRendererCreated()?,
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');