XBLineChart class

Inheritance

Constructors

XBLineChart({int yTitleCount = 8, double yTitleWidth = 50, required List<XBLineChartXTitle> xTitles, required List<XBLineChartModel> models, int pointCountPerPage = 7, XBLineChartHoverBuilder? hoverBuilder, XBLineChartTextGetter? hoverValueTextGetter, double? namesPaddingLeft, double leftTitlePaddingRight = 10, bool needNames = true, XBLineChartNameLayout? namesLayout = XBLineChartNameLayout.wrap, Color touchLineColor = Colors.grey, double lineWidth = 2.5, double circleRadius = 2.5, XBLineChartTextGetter? pointTextGetter, TextStyle? pointTextStyle, Key? key})

Properties

circleRadius double
折线圆点的半径
final
hashCode int
The hash code for this object.
no setterinherited
hoverBuilder XBLineChartHoverBuilder?
悬浮窗的样式构建函数
final
hoverValueTextGetter XBLineChartTextGetter?
悬浮窗的文本构建函数
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leftTitlePaddingRight double
左侧标题和图表的间距,默认10
final
lineWidth double
折线的宽度
final
models List<XBLineChartModel>
数据源
getter/setter pair
namesLayout XBLineChartNameLayout?
最底部,名字的布局方式,默认为wrap
final
namesPaddingLeft double?
最底部,名字的左边距
final
needNames bool
是否需要底部的名字部分
final
pointCountPerPage int
每页,横向要显示几个点,默认7个
final
pointTextGetter XBLineChartTextGetter?
折线点对应的文本
final
pointTextStyle TextStyle?
折线点对应的文本的样式
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
touchLineColor Color
触摸时展示的线条的颜色
final
xTitles List<XBLineChartXTitle>
x轴上的文字
final
yTitleCount int
左侧标题的数量,默认为8个
final
yTitleWidth double
左侧标题的宽度,默认为50
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<XBLineChart>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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