XChart class

Inheritance

Constructors

XChart({required double yAxisHeight, required List<String> yData, required int xCount, required Map<String, Widget> xItemBuild(Map<String, dynamic> params), Color yFontColor = _defaultTextColor, Map<String, dynamic> lineChartBuild()?, Map<String, dynamic> limitLineBuild()?, double xAxisItemWidth = 0, double yFontSize = 0, dynamic xItemClick(int index, int curIndex)?, Map<String, dynamic> popBuild(Map<String, dynamic> params)?, Color yAxisLineColor = _defaultLineColor, Color xAxisLineColor = _defaultLineColor, Color zeroLineColor = _defaultLineColor, AxisLineMode yAxisLineMode = AxisLineMode.dotted, AxisLineMode xAxisLineMode = AxisLineMode.dotted, AxisLineMode zeroAxisLineMode = AxisLineMode.dotted, double xTagTopMargin = -1, bool xBarClickEnable = true})

Properties

hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
limitLineBuild ↔ (Map<String, dynamic> Function()?)
限制线构建 map key "lineData"
getter/setter pair
lineChartBuild ↔ (Map<String, dynamic> Function()?)
折线图构建 map key "lineData"
getter/setter pair
popBuild ↔ (Map<String, dynamic> Function(Map<String, dynamic> params)?)
pop构建 map key "widget" "leftOffset" "topOffset" "popWidth" "popHeight" params "maxHeight" "margin" "curIndex" "xWidth"
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
xAxisItemWidth double
X轴Item宽度
getter/setter pair
xAxisLineColor Color
x轴辅助线颜色
getter/setter pair
xAxisLineMode AxisLineMode
x轴辅助线模式
getter/setter pair
xBarClickEnable bool
x轴是否可点击
getter/setter pair
xCount int
X轴Item数量
getter/setter pair
xItemBuild Map<String, Widget> Function(Map<String, dynamic> params)
X轴Item构建 map key "bar" "tag" params "maxHeight" "margin" "index" "curIndex" "xWidth"
getter/setter pair
xItemClick ↔ (dynamic Function(int index, int curIndex)?)
Item点击事件
getter/setter pair
xTagTopMargin double
x轴标签上边距
getter/setter pair
yAxisHeight double
Y轴长度
getter/setter pair
yAxisLineColor Color
y轴辅助线颜色
getter/setter pair
yAxisLineMode AxisLineMode
y轴辅助线模式
getter/setter pair
yData List<String>
Y轴数据
getter/setter pair
yFontColor Color
Y轴字体颜色
getter/setter pair
yFontSize double
Y轴字体大小
getter/setter pair
zeroAxisLineMode AxisLineMode
原点辅助线模式
getter/setter pair
zeroLineColor Color
原点线颜色
getter/setter pair

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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}) 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