BrnProgressBarChart class

BrnProgressBarChart 柱形数据图表 展示一组或者多组数据,方便数据的查看以及对比

Inheritance
Available Extensions

Constructors

BrnProgressBarChart({Key? key, double minWidth = 0, EdgeInsetsGeometry padding = const EdgeInsets.all(20), BarChartStyle barChartStyle = BarChartStyle.vertical, required ChartAxis xAxis, required ChartAxis yAxis, required List<BrnProgressBarBundle> barBundleList, double barGroupSpace = 30, double singleBarWidth = 30, double barMaxValue = 0, Color selectedHintTextColor = Colors.white, Color selectedHintTextBackgroundColor = Colors.black, OnBarItemClickInterceptor? onBarItemClickInterceptor, BrnProgressBarChartSelectCallback? barChartSelectCallback, double height = 300})
create BrnProgressBarChart

Properties

barBundleList List<BrnProgressBarBundle>
柱形数据,必传
final
barChartSelectCallback BrnProgressBarChartSelectCallback?
选中柱状图时候的回调(暂仅支持垂直柱状图)
final
barChartStyle BarChartStyle
柱状图方向,默认 BarChartStyle.vertical
final
barGroupSpace double
柱形图间的间距,默认 30
final
barMaxValue double
柱状图的最大值,柱状图的宽/高会依此值计算,默认 0,为0时自动计算柱状图最大值
final
hashCode int
The hash code for this object.
no setterinherited
height double
图表高度,竖直柱状图有效,默认300
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minWidth double
图表最小宽度,默认0
final
onBarItemClickInterceptor OnBarItemClickInterceptor?
是否可点击回调
final
padding EdgeInsetsGeometry
内边距,默认 EdgeInsets.all(20)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedHintTextBackgroundColor Color
选中柱状图时条形文案背景颜色,默认 Colors.black
final
selectedHintTextColor Color
选中柱状图时条形文案颜色,默认 Colors.white
final
singleBarWidth double
单个柱形宽度,默认 30
final
xAxis ChartAxis
x轴数据,必传
final
yAxis ChartAxis
y轴数据,必传
final

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