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 lineFilling = true, bool lineShadow = true, bool altitudeLine = true, LimitLabelSnapPosition limitLabelSnapPosition = LimitLabelSnapPosition.axis, bool showAxisXLabels = true, bool showAxisYLabels = true, bool showAxisXLabelSelection = false, bool showPoint = true, bool showTooltip = true, bool selectionEnabled = true})
Constructs an instance of LineChartSettings.
const
LineChartSettings.gridless({int? xAxisLabelQuantity, bool showAxisX = true, bool showAxisXSelectedLabelIfConcealed = false, bool showAxisY = true, bool lineFilling = true, bool lineShadow = true, bool altitudeLine = true, LimitLabelSnapPosition limitLabelSnapPosition = LimitLabelSnapPosition.axis, bool showAxisXLabels = true, bool showAxisYLabels = true, bool showAxisXLabelSelection = false, bool showPoint = true, bool showTooltip = 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.
final
hashCode int
The hash code for this object.
no setteroverride
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.
final
showAxisXLabels bool
Whether to show X axis labels or not.
final
showAxisXLabelSelection bool
Whether to paint with selected style currently selected X axis label or not.
final
showAxisXSelectedLabelIfConcealed bool
Whether to show X axis labels or not if xAxisLabelQuantity is set and label is concealed in normal circumstances.
final
showAxisY bool
Whether to show Y axis or not.
final
showAxisYLabels bool
Whether to show Y axis labels or not.
final
showPoint bool
Whether to show current or selected point or not.
final
showTooltip bool
Whether to show tooltip over the selected point or not.
final
xAxisDivisions int
Divisions of the X axis or the quantity of the grid lines on X axis.
final
xAxisLabelQuantity int?
Quantity of the X axis labels to draw.
final
yAxisDivisions int
Divisions of the Y axis or the quantity of the grid lines on Y axis.
final

Methods

copyWith({bool allowNullXAxisLabelQuantity = false, int? xAxisDivisions, int? yAxisDivisions, int? xAxisLabelQuantity, AxisDivisionEdges? axisDivisionEdges, bool? showAxisX, bool? showAxisXSelectedLabelIfConcealed, bool? showAxisY, bool? lineFilling, bool? lineShadow, bool? altitudeLine, LimitLabelSnapPosition? limitLabelSnapPosition, bool? showAxisXLabels, bool? showAxisYLabels, bool? showAxisXLabelSelection, bool? showPoint, bool? showTooltip, 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.
override