XBHistogramChart class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- XBHistogramChart
Constructors
-
XBHistogramChart({required List<
XBHistogramChartYModel> yModels, int xAxisTitleCount = 4, double itemHeigth = 18, double itemGap = 15, double leftTitlePaddingRight = 10, double leftTitleWidth = 50, double maxBottomTitleWidth = 100, XBHistogramChartRightTextGetter<String, double, double> ? rightTextGetter, TextStyle? rightTextStyle, TextStyle? bottomTitleStyle, bool isNeedRightText = false, double? rightTextLeftPadding, Key? key})
Properties
- bottomTitleStyle → TextStyle?
-
final
- bottomTitleWidth ↔ double
-
底部文字的宽度,会自动计算
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNeedRightText → bool
-
是否需要右侧文字
final
- itemGap → double
-
柱子的间距
final
- itemHeigth → double
-
每个柱子的高度
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leftTitlePaddingRight → double
-
左侧文字和图表的距离
final
- leftTitleWidth → double
-
左侧文字的宽度
final
- maxBottomTitleWidth → double
-
底部文字的最大宽度,默认100
final
- maxValue ↔ double
-
根据yModels中所有元素的value计算的最大值,用来计算柱子百分比
getter/setter pair
-
rightTextGetter
→ XBHistogramChartRightTextGetter<
String, double, double> ? -
右侧文字
返回值、当前值、最大值
final
- rightTextLeftPadding → double?
-
右侧文字左边距
final
- rightTextStyle → TextStyle?
-
右侧文字样式
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- xAxisTitleCount → int
-
除去0以外,底部文字的数量
final
-
xAxisTitlesList
↔ List<
String> -
底部文字,会自动生成
getter/setter pair
-
yModels
→ List<
XBHistogramChartYModel> -
数据
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
caculateMaxBottomTitleWidth(
) → double -
caculateMaxRightTextWidth(
) → double -
caculateRightTextFit(
double maxWidth) → dynamic -
caculateTitleWidth(
String value, TextStyle style) → double -
caculateXAxisTitlesList(
) → List< String> -
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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