BarLineScatterCandleBubbleData<T extends IBarLineScatterCandleBubbleDataSet<Entry> > class
abstract
Base for the data objects of the charts with an x and a y axis (bar, line, scatter, candle, bubble and combined). Adds nothing to ChartData beyond the set type; it lets a combined chart treat them alike.
T is the data set type this object holds.
- Inheritance
- Implementers
Constructors
-
BarLineScatterCandleBubbleData([List<
T> ? dataSets]) -
Creates a data object holding
sets(kept by reference), or an empty one (Kotlin's(),(vararg sets)and(sets: 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<
T> -
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_VALUEwhen there are none.getter/setter pairinherited - leftAxisMin ↔ double
-
Smallest y over the sets on the left axis, or
Float.MAX_VALUEwhen there are none.getter/setter pairinherited - maxEntryCountSet → T?
-
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_VALUEwhen there are none.getter/setter pairinherited - rightAxisMin ↔ double
-
Smallest y over the sets on the right axis, or
Float.MAX_VALUEwhen 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_VALUEwhen there is no data.getter/setter pairinherited - xMin ↔ double
-
Smallest x over all sets, or
Float.MAX_VALUEwhen there is no data.getter/setter pairinherited - yMax ↔ double
-
Largest y over all sets on both axes, or -
Float.MAX_VALUEwhen there is no data.getter/setter pairinherited - yMin ↔ double
-
Smallest y over all sets on both axes, or
Float.MAX_VALUEwhen there is no data.getter/setter pairinherited
Methods
-
addDataSet(
T? d) → void -
Appends
dand widens the cached ranges to include it. Does nothing for null.inherited -
addEntry(
Entry e, int dataSetIndex) → void -
Appends
eto the set atdataSetIndexwith 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(
T 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
axisto includee.inherited -
calcMinMaxY(
double fromX, double toX) → void -
Tells every set to recompute its y range from the entries between
fromXandtoXonly, 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(
T dataSet) → bool -
Returns true if
dataSetis one of the sets, compared with==.inherited -
getDataSetByIndex(
int index) → T? -
Returns the set at
index, or null when the index is out of range.inherited -
getDataSetByLabel(
String label, bool ignoreCase) → T? -
Returns the first set whose label equals
labelby scanning all sets.inherited -
getDataSetForEntry(
Entry? e) → T? -
Finds the set that holds an entry matching
eby x, y and payload (see Entry.equalTo).inherited -
getDataSetIndexByLabel(
List< T> dataSets, String label, bool ignoreCase) → int -
Finds the first set in
dataSetswhose label equalslabelby scanning the list.inherited -
getEntryForHighlight(
Highlight highlight) → Entry? -
Returns the entry a highlight refers to: the entry in the set at Highlight.dataSetIndex whose x is
closest to Highlight.x and, among equal x, whose y is closest to Highlight.y.
inherited
-
getFirstLeft(
List< T> sets) → T? -
Returns the first of
setsthat is plotted against the left y axis, or null if there is none.inherited -
getFirstRight(
List< T> sets) → T? -
Returns the first of
setsthat is plotted against the right y axis, or null if there is none.inherited -
getIndexOfDataSet(
T dataSet) → int -
Returns the index of
dataSetin 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.notifyDataSetChangedon that set first. The chart still needs its own notify call to redraw.inherited -
removeDataSet(
T? d) → bool -
Removes
dand recomputes the cached ranges if it was found.inherited -
removeDataSetByIndex(
int index) → bool -
Removes the set at
indexand recomputes the cached ranges.inherited -
removeEntry(
Entry? e, int dataSetIndex) → bool -
Removes
efrom the set atdataSetIndexand 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 atdataSetIndexand recomputes the cached ranges.inherited -
setDrawValues(
bool enabled) → void -
Turns value labels on or off for every set.
inherited
-
setValueFormatter(
IValueFormatter f) → void -
Assigns
fas the value label formatter of every set.inherited -
setValueTextColor(
Color color) → void -
Assigns
coloras 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
sizein dp as the value label text size of every set.inherited -
setValueTypeface(
Typeface? tf) → void -
Assigns
tfas 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