RadarData class

Data for a radar chart: one or more IRadarDataSets, one polygon each.

Inheritance

Constructors

RadarData([List<IRadarDataSet>? dataSets])
Creates a data object holding dataSets (kept by reference), or an empty one (Kotlin's (), (vararg dataSets) and (dataSets: List) constructors).

Properties

colors → List<Color>
The colors of all sets, set by set, in one list.
no setterinherited
dataSetCount → int
Number of data sets.
no setterinherited
dataSetLabels → List<String>
The labels of all sets in set order.
no setterinherited
dataSets → List<IRadarDataSet>
The data sets in drawing order. Changing this list in place does not update the cached ranges; call notifyDataChanged afterwards or use addDataSet and removeDataSet.
finalinherited
entryCount → int
Total number of entries over all sets.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isHighlightEnabled ↔ bool
True when every set allows highlighting by touch or code (also true with no sets). Assigning applies the value to every set.
getter/setter pairinherited
leftAxisMax ↔ double
Largest y over the sets on the left axis, or -Float.MAX_VALUE when there are none.
getter/setter pairinherited
leftAxisMin ↔ double
Smallest y over the sets on the left axis, or Float.MAX_VALUE when there are none.
getter/setter pairinherited
maxEntryCountSet → IRadarDataSet?
The set with the most entries (the first of them on a tie), or null when there are no sets.
no setterinherited
rightAxisMax ↔ double
Largest y over the sets on the right axis, or -Float.MAX_VALUE when there are none.
getter/setter pairinherited
rightAxisMin ↔ double
Smallest y over the sets on the right axis, or Float.MAX_VALUE when there are none.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
xMax ↔ double
Largest x over all sets, or -Float.MAX_VALUE when there is no data.
getter/setter pairinherited
xMin ↔ double
Smallest x over all sets, or Float.MAX_VALUE when there is no data.
getter/setter pairinherited
yMax ↔ double
Largest y over all sets on both axes, or -Float.MAX_VALUE when there is no data.
getter/setter pairinherited
yMin ↔ double
Smallest y over all sets on both axes, or Float.MAX_VALUE when there is no data.
getter/setter pairinherited

Methods

addDataSet(IRadarDataSet? d) → void
Appends d and widens the cached ranges to include it. Does nothing for null.
inherited
addEntry(Entry e, int dataSetIndex) → void
Appends e to the set at dataSetIndex with IDataSet.addEntry and widens the cached ranges to include that set's ranges. An index out of range only logs an error.
inherited
calcMinMax() → void
Recomputes the overall and per axis x and y ranges from the sets' cached ranges.
inherited
calcMinMaxForDataSet(IRadarDataSet d) → void
Widens the overall ranges and the ranges of the set's axis to include the cached ranges of d.
inherited
calcMinMaxForEntry(Entry e, AxisDependency axis) → void
Widens the overall ranges and the ranges of axis to include e.
inherited
calcMinMaxY(double fromX, double toX) → void
Tells every set to recompute its y range from the entries between fromX and toX only, then recomputes the cached ranges. Used by charts that auto scale the y axis to the visible x range.
inherited
clearValues() → void
Removes all sets and resets the cached ranges.
inherited
contains(IRadarDataSet dataSet) → bool
Returns true if dataSet is one of the sets, compared with ==.
inherited
getDataSetByIndex(int index) → IRadarDataSet?
Returns the set at index, or null when the index is out of range.
inherited
getDataSetByLabel(String label, bool ignoreCase) → IRadarDataSet?
Returns the first set whose label equals label by scanning all sets.
inherited
getDataSetForEntry(Entry? e) → IRadarDataSet?
Finds the set that holds an entry matching e by x, y and payload (see Entry.equalTo).
inherited
getDataSetIndexByLabel(List<IRadarDataSet> dataSets, String label, bool ignoreCase) → int
Finds the first set in dataSets whose label equals label by scanning the list.
inherited
getEntryForHighlight(Highlight highlight) → Entry?
Returns the entry a highlight refers to. For radar charts Highlight.x holds the entry index (truncated towards zero), not an x value.
override
getFirstLeft(List<IRadarDataSet> sets) → IRadarDataSet?
Returns the first of sets that is plotted against the left y axis, or null if there is none.
inherited
getFirstRight(List<IRadarDataSet> sets) → IRadarDataSet?
Returns the first of sets that is plotted against the right y axis, or null if there is none.
inherited
getIndexOfDataSet(IRadarDataSet dataSet) → int
Returns the index of dataSet in dataSets, or -1 if it is not part of this data.
inherited
getYMax(AxisDependency axis) → double
Returns the largest y of the sets on axis. When no set uses that axis the other axis' maximum is returned, so both axes show the same range.
inherited
getYMin(AxisDependency axis) → double
Returns the smallest y of the sets on axis. When no set uses that axis the other axis' minimum is returned, so both axes show the same range.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyDataChanged() → void
Recomputes the cached ranges from the sets' own ranges. It does not ask the sets to recompute theirs, so after changing a set's entries in place call DataSet.notifyDataSetChanged on that set first. The chart still needs its own notify call to redraw.
inherited
removeDataSet(IRadarDataSet? d) → bool
Removes d and recomputes the cached ranges if it was found.
inherited
removeDataSetByIndex(int index) → bool
Removes the set at index and recomputes the cached ranges.
inherited
removeEntry(Entry? e, int dataSetIndex) → bool
Removes e from the set at dataSetIndex and recomputes the cached ranges if it was found.
inherited
removeEntryByXValue(double xValue, int dataSetIndex) → bool
Removes the entry whose x is closest to xValue (not necessarily an exact match) from the set at dataSetIndex and recomputes the cached ranges.
inherited
setDrawValues(bool enabled) → void
Turns value labels on or off for every set.
inherited
setValueFormatter(IValueFormatter f) → void
Assigns f as the value label formatter of every set.
inherited
setValueTextColor(Color color) → void
Assigns color as the only value label color of every set.
inherited
setValueTextColors(List<Color> colors) → void
Assigns the same list of value label colors to every set.
inherited
setValueTextSize(double size) → void
Assigns size in dp as the value label text size of every set.
inherited
setValueTypeface(Typeface? tf) → void
Assigns tf as the value label typeface of every set; null uses the default typeface.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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