BrnRadarChart class

Radar chart 雷达图表 提供方便的绘制雷达图表的功能。 基础的属性修改如雷达图的边数sidesCount,半径大小radius,旋转角度rotateAngle等。 对绘制的效果也支持一定程度上的定制,参考BrnRadarChartDataProvider,BrnRadarChartStyle

Inheritance

Constructors

BrnRadarChart({Key? key, required BrnRadarChartDataProvider provider, required MarkerBuilder builder, double radius = 50, int levelCount = 3, double maxValue = 10, double minValue = 0, double markerMargin = 4, int sidesCount = 5, List<Offset>? offset, Color axisLineColor = const Color(0xFFCCCCCC), bool crossedAxisLine = false, double animateProgress = 1.0, double rotateAngle = 0})
BrnRadarChart.defaultStyle({Key? key, double radius = 50, int levelCount = 3, double maxValue = 10, double minValue = 0, double markerMargin = 4, int sidesCount = 5, double rotateAngle = 0, bool crossedAxisLine = false, List<Offset>? offset, required List<String> tagNames, required List<List<double>> data})
The default style named constructor which is designed with Bruno style. The data length should be less than the defaultRadarChartStyles's length or you should use the default constructor.

Properties

animateProgress double
控制带动画效果绘制时的绘制快慢,默认 1.0
final
axisLineColor Color
背景多边形轴颜色,默认 Color(0xFFCCCCCC)
final
children List<Widget>
The widgets below this widget in the tree.
finalinherited
crossedAxisLine bool
是否展示中间十字交叉线,默认 false
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
levelCount int
数据可划分的区间个数。默认值 3
final
markerMargin double
标签和雷达图顶点的间距,默认值4
final
maxValue double
数据的最大值,默认 10
final
minValue double
数据的最小值,默认 0
final
offset List<Offset>?
每个标注文案的偏移量,必须和 sidesCount 保持一致。
final
provider BrnRadarChartDataProvider
提供绘制雷达图所需要的数据
final
radius double
雷达图半径(多边形外接圆的半径),默认50
final
rotateAngle double
整个雷达图旋转角度,默认0
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sidesCount int
雷达数据的维度(多边形的边数>=3),默认值 5
final

Methods

createElement() MultiChildRenderObjectElement
RenderObjectWidgets always inflate to a RenderObjectElement subclass.
inherited
createRenderObject(BuildContext context) RenderObject
Creates an instance of the RenderObject class that this RenderObjectWidget represents, using the configuration described by this RenderObjectWidget.
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
didUnmountRenderObject(covariant RenderObject renderObject) → void
A render object previously associated with this widget has been removed from the tree. The given RenderObject will be of the same type as returned by this object's createRenderObject.
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
updateRenderObject(BuildContext context, covariant RenderRadarChart renderObject) → void
Copies the configuration described by this RenderObjectWidget to the given RenderObject, which will be of the same type as returned by this object's createRenderObject.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultRadarChartStyles → const List<BrnRadarChartStyle>
The default preset chart styles ordered in priority of usage.