Radar<T> class

雷达图 @author JD

Inheritance

Constructors

Radar({required List<T> data, required RadarChartValue<T> values, required num max, Color lineColor = Colors.black12, RotateDirection direction = RotateDirection.forward, RadarValueFormatter? valueFormatter, RadarLegendFormatter? legendFormatter, List<Color> colors = colors10, double startAngle = -math.pi / 2, List<Color>? fillColors, int count = 5, RadarBorderStyle borderStyle = RadarBorderStyle.polygon, TextStyle legendTextStyle = const TextStyle(fontSize: 10, color: Colors.black, fontWeight: FontWeight.bold)})

Properties

borderStyle RadarBorderStyle
final
chartState ChartLayoutState
图表的布局状态
getter/setter pairinherited
colors List<Color>
值的线颜色
final
controller ChartController
getter/setter pairinherited
count int
分隔线的数量
final
data List<T>
数据源
finalinherited
direction RotateDirection
开始的方向
final
fillColors List<Color>?
值的填充颜色
final
hashCode int
The hash code for this object.
no setterinherited
index int
在图表中的位置
getter/setter pairinherited
isInit bool
getter/setter pairinherited
legendFormatter RadarLegendFormatter?
图例文案格式化 不要使用过于耗时的方法
final
legendTextStyle TextStyle
图例样式
final
lineColor Color
基线的颜色
final
max num
最大值
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startAngle double
开始弧度,可以调整起始位置
final
valueFormatter RadarValueFormatter?
值文案格式化 不要使用过于耗时的方法
final
values RadarChartValue<T>
点的位置
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