LineChartSettings class

Set of settings of the LineChart.

Constructors

LineChartSettings({int xAxisDivisions = 3, int yAxisDivisions = 2, int? xAxisLabelQuantity, AxisDivisionEdges axisDivisionEdges = AxisDivisionEdges.none, bool showAxisX = true, bool showAxisXSelectedLabelIfConcealed = false, bool showAxisY = true, bool showAxisXLabels = true, bool showAxisYLabels = true, bool showAxisXLabelSelection = false, YAxisLayout yAxisLayout = YAxisLayout.overlay, double yAxisLabelSpacing = 0, bool showDropLine = true, bool showTooltip = true, bool lineFilling = true, bool lineShadow = true, bool altitudeLine = true, LimitLabelSnapPosition limitLabelSnapPosition = LimitLabelSnapPosition.axis, bool showPoint = true, bool selectionEnabled = true})
Constructs an instance of LineChartSettings.
const
LineChartSettings.gridless({int? xAxisLabelQuantity, bool showAxisX = true, bool showAxisXSelectedLabelIfConcealed = false, bool showAxisY = true, bool showAxisXLabels = true, bool showAxisYLabels = true, bool showAxisXLabelSelection = false, YAxisLayout yAxisLayout = YAxisLayout.overlay, double yAxisLabelSpacing = 0, bool showDropLine = true, bool showTooltip = true, bool lineFilling = true, bool lineShadow = true, bool altitudeLine = true, LimitLabelSnapPosition limitLabelSnapPosition = LimitLabelSnapPosition.axis, bool showPoint = true, bool selectionEnabled = true})
Constructs an instance of LineChartSettings without grids.
const

Properties

altitudeLine bool
Whether to show the altitude line at the chart's last point of not.
final
axisDivisionEdges AxisDivisionEdges
Axis division edges to be painted.
finalinherited
hashCode int
The hash code for this object.
no setter
limitLabelSnapPosition LimitLabelSnapPosition
Snap position options of limit label.
final
lineFilling bool
Whether to fill the space between the line and the X axis with color or gradient, which depends on provided style.
final
lineShadow bool
Whether to paint the shadow beneath the cart line or not.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionEnabled bool
Whether interactive selection is enabled or not.
final
showAxisX bool
Whether to show X axis or not.
finalinherited
showAxisXLabels bool
Whether to show X axis labels or not.
finalinherited
showAxisXLabelSelection bool
Whether to paint with selected style currently selected X axis label or not.
finalinherited
showAxisXSelectedLabelIfConcealed bool
Whether to show X axis labels or not if xAxisLabelQuantity is set and label is concealed in normal circumstances.
finalinherited
showAxisY bool
Whether to show Y axis or not.
finalinherited
showAxisYLabels bool
Whether to show Y axis labels or not.
finalinherited
showDropLine bool
Whether to show drop lines beneath the selected item or not.
finalinherited
showPoint bool
Whether to show current or selected point or not.
final
showTooltip bool
Whether to show tooltip over the selected item or not.
finalinherited
xAxisDivisions int
Divisions of the X axis or the quantity of the grid lines on X axis.
finalinherited
xAxisLabelQuantity int?
Quantity of the X axis labels to draw.
finalinherited
yAxisDivisions int
Divisions of the Y axis or the quantity of the grid lines on Y axis.
finalinherited
yAxisLabelSpacing double
Spacing between the Y axis labels and chart itself.
finalinherited
yAxisLayout YAxisLayout
Layout type of the Y axis labels.
finalinherited

Methods

copyWith({bool allowNullXAxisLabelQuantity = false, int? xAxisDivisions, int? yAxisDivisions, int? xAxisLabelQuantity, AxisDivisionEdges? axisDivisionEdges, bool? showAxisX, bool? showAxisXSelectedLabelIfConcealed, bool? showAxisY, bool? showAxisXLabels, bool? showAxisYLabels, bool? showAxisXLabelSelection, YAxisLayout? yAxisLayout, double? yAxisLabelSpacing, bool? showDropLine, bool? showTooltip, bool? lineFilling, bool? lineShadow, bool? altitudeLine, LimitLabelSnapPosition? limitLabelSnapPosition, bool? showPoint, bool? selectionEnabled}) LineChartSettings
Creates a copy of the current object with new values specified in arguments.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.