RadarChartData class

RadarChart needs this class to render itself.

It holds data needed to draw a radar chart, including radar dataSets, colors, ...

Inheritance

Constructors

RadarChartData({@required List<RadarDataSet>? dataSets, Color? radarBackgroundColor, BorderSide? radarBorderData, RadarShape? radarShape, GetTitleByIndexFunction? getTitle, TextStyle? titleTextStyle, double? titlePositionPercentageOffset, int? tickCount, TextStyle? ticksTextStyle, BorderSide? tickBorderData, BorderSide? gridBorderData, RadarTouchData? radarTouchData, FlBorderData? borderData})
RadarChart draws some dataSets in a radar-shaped chart. it fills the radar area with radarBackgroundColor and draws radar border with radarBorderData then draws a grid over it, you can customize it using gridBorderData.

Properties

borderData FlBorderData
Holds data to drawing border around the chart.
finalinherited
dataSets List<RadarDataSet>
RadarChart draw dataSets that each of them showing a list of RadarEntry
final
getTitle GetTitleByIndexFunction?
getTitle is used to draw titles outside the RadarChart getTitle is type of GetTitleByIndexFunction so you should return a valid RadarChartTitle for each index (we provide a default angle = index * 360 / titleCount)
final
gridBorderData BorderSide
Defines style of showing RadarChart grid borders.
final
hashCode int
The hash code for this object.
no setterinherited
maxEntry RadarEntry
defines the maximum RadarEntry value in all dataSets we use this value to calculate the maximum value of ticks.
no setter
minEntry RadarEntry
defines the minimum RadarEntry value in all dataSets we use this value to calculate the minimum value of ticks.
no setter
props List<Object?>
Used for equality check, see EquatableMixin.
no setteroverride
radarBackgroundColor Color
radarBackgroundColor draw the background color of the RadarChart
final
radarBorderData BorderSide
radarBorderData is used to draw RadarChart border
final
radarShape RadarShape
radarShape is used to draw RadarChart border and background
final
radarTouchData RadarTouchData
Handles touch behaviors and responses.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
tickBorderData BorderSide
Defines style of showing RadarChart tick borders.
final
tickCount int
Defines the number of ticks that should be paint in RadarChart the default & minimum value of this field is 1.
final
ticksTextStyle TextStyle?
Defines style of showing RadarChart tick titles.
final
titleCount int
titleCount we use this value to determine number of RadarChart grid or lines.
no setter
titlePositionPercentageOffset double
the titlePositionPercentageOffset is the place of showing title on the RadarChart The higher the value of this field, the more titles move away from the chart. this field should be between 0 and 1, if it is 0 the title will be drawn near the inside section, if it is 1 the title will be drawn near the outside of section, the default value is 0.2.
final
titleTextStyle TextStyle?
Defines style of showing RadarChart titles.
final
touchData FlTouchData<BaseTouchResponse>
Holds data needed to touch behavior and responses.
finalinherited

Methods

copyWith({List<RadarDataSet>? dataSets, Color? radarBackgroundColor, BorderSide? radarBorderData, RadarShape? radarShape, GetTitleByIndexFunction? getTitle, TextStyle? titleTextStyle, double? titlePositionPercentageOffset, int? tickCount, TextStyle? ticksTextStyle, BorderSide? tickBorderData, BorderSide? gridBorderData, RadarTouchData? radarTouchData, FlBorderData? borderData}) RadarChartData
Copies current RadarChartData to a new RadarChartData, and replaces provided values.
lerp(BaseChartData a, BaseChartData b, double t) RadarChartData
Lerps a BaseChartData based on t value, check Tween.lerp.
override
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