Progress<T> class
@author jd
- Inheritance
-
- Object
- ChartBodyRender<
T> - Progress
Constructors
Properties
- chartState ↔ ChartLayoutState
-
图表的布局状态
getter/setter pairinherited
-
colors
→ List<
Color> -
颜色
final
- controller ↔ ChartController
-
getter/setter pairinherited
-
data
→ List<
T> -
数据源
finalinherited
- endPoint → bool
-
结尾画小原点
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index ↔ int
-
在图表中的位置
getter/setter pairinherited
- isInit ↔ bool
-
getter/setter pairinherited
-
position
→ ChartPosition<
T> -
不要使用过于耗时的方法
数据在坐标系的位置,每个坐标系下取值逻辑不一样,在line和bar下是相对于每格的值,比如xAxis的interval为1,你的数据放在1列和2列中间,那么position就是0.5,在pie下是比例
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startAngle → double
-
开始弧度,可以调整起始位置
final
- strokeCap → StrokeCap?
-
结尾样式
final
- strokeWidth → double
-
线宽
final
- yAxisPosition → int
-
跟哪个y轴关联
finalinherited
Methods
-
draw(
Canvas canvas, ChartsState state) → void -
getLastData(
bool need) → List< ChartItemLayoutState> ? -
inherited
-
init(
ChartsState state) → void - 初始化 耗时的方法都可以放到这里
-
lerpList(
List< num> ? a, List<num> ? b, double t) → List<num> ? -
inherited
-
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.
inherited