DataSet<T extends Entry> class abstract

Inheritance
Implementers

Constructors

DataSet(List<T> values, String label)
Creates a DataSet object with the given values (entries) it represents. Also, a label that describes the DataSet can be specified. The label can also be used to retrieve the DataSet from a ChartData object.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<T>?
no setter
xMax double
no getter
xMin double
no getter
yMax double
no getter
yMin double
no getter

Methods

addColor(Color color) → void
Adds a color to the colors array of the DataSet.
inherited
addEntry(T? e) bool
override
addEntryByIndex(int index, T? e) bool
override
addEntryOrdered(T? e) → void
override
calcMinMax() → void
override
calcMinMax1(T? e) → void
Updates the min and max x and y value of this DataSet based on the given Entry.
calcMinMaxX1(T e) → void
calcMinMaxY(double fromX, double toX) → void
override
calcMinMaxY1(T e) → void
clear() → void
override
contains(T e) bool
inherited
copy(BaseDataSet<Entry> baseDataSet) → void
inherited
copy1() DataSet<T>
Provides an exact copy of the DataSet this method is used on.
copy2(DataSet<Entry> dataSet) → void
@param dataSet
getAxisDependency() AxisDependency
inherited
getColor1() Color
inherited
getColor2(int index) Color
inherited
getColors() List<Color>?
###### COLOR GETTING RELATED METHODS #####
inherited
getEntriesForXValue(double? xValue) List<T>
override
getEntryCount() int
override
getEntryForIndex(int? index) → T?
override
getEntryForXValue1(double? xValue, double? closestToY, Rounding rounding) → T?
override
getEntryForXValue2(double? xValue, double? closestToY) → T?
override
getEntryIndex1(double? xValue, double? closestToY, Rounding rounding) int
override
getEntryIndex2(Entry? e) int
override
getForm() LegendForm
inherited
getFormLineDashEffect() DashPathEffect?
inherited
getFormLineWidth() double
inherited
getFormSize() double
inherited
getGradientColor1() GradientColor?
inherited
getGradientColor2(int index) GradientColor
inherited
getGradientColors() List<GradientColor>?
inherited
getIconsOffset() MPPointF
inherited
getIndexInEntries(int xIndex) int
###### DATA RELATED METHODS ######
inherited
getLabel() String
inherited
getValueColors() List<Color>?
inherited
getValueFormatter() ValueFormatter?
inherited
getValueTextColor1() Color
inherited
getValueTextColor2(int index) Color
inherited
getValueTextSize() double?
inherited
getValueTypeface() TypeFace?
inherited
getXMax() double
override
getXMin() double
override
getYMax() double
override
getYMin() double
override
isDrawIconsEnabled() bool
inherited
isDrawValuesEnabled() bool
inherited
isHighlightEnabled() bool
inherited
isVisible() bool
inherited
needsFormatter() bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyDataSetChanged() → void
Use this method to tell the data set that the underlying data has changed.
inherited
removeEntry1(T? e) bool
override
removeEntry2(int index) bool
inherited
removeEntryByXValue(double xValue) bool
inherited
removeFirst() bool
inherited
removeLast() bool
inherited
resetColors() → void
Resets all colors of this DataSet and recreates the colors array.
inherited
setAxisDependency(AxisDependency dependency) → void
inherited
setColor1(Color color) → void
Sets the one and ONLY color that should be used for this DataSet. Internally, this recreates the colors array and adds the specified color.
inherited
setColor2(Color color, int alpha) → void
Sets a color with a specific alpha value.
inherited
setColor3(Color color, int alpha) → void
inherited
setColors1(List<Color> colors) → void
Sets the colors that should be used fore this DataSet. Colors are reused as soon as the number of Entries the DataSet represents is higher than the size of the colors array. If you are using colors from the resources, make sure that the colors are already prepared (by calling getResources().getColor(...)) before adding them to the DataSet.
inherited
setColors2(List<Color> colors, int alpha) → void
Sets colors with a specific alpha value.
inherited
setDrawIcons(bool enabled) → void
inherited
setDrawValues(bool enabled) → void
inherited
setForm(LegendForm form) → void
inherited
setFormLineDashEffect(DashPathEffect dashPathEffect) → void
inherited
setFormLineWidth(double formLineWidth) → void
inherited
setFormSize(double formSize) → void
inherited
setGradientColor(Color startColor, Color endColor) → void
Sets the start and end color for gradient color, ONLY color that should be used for this DataSet.
inherited
setGradientColors(List<GradientColor> gradientColors) → void
Sets the start and end color for gradient colors, ONLY color that should be used for this DataSet.
inherited
setHighlightEnabled(bool enabled) → void
inherited
setIconsOffset(MPPointF offsetDp) → void
inherited
setLabel(String label) → void
###### OTHER STYLING RELATED METHODS #####
inherited
setValueFormatter(ValueFormatter? f) → void
inherited
setValues(List<T> values) → void
Sets the array of entries that this DataSet represents, and calls notifyDataSetChanged()
setValueTextColor(Color color) → void
inherited
setValueTextColors(List<Color> colors) → void
inherited
setValueTextSize(double size) → void
inherited
setValueTypeface(TypeFace tf) → void
inherited
setVisible(bool visible) → void
inherited
toSimpleString() String
Returns a simple string representation of the DataSet with the type and the number of Entries.
toString() String
A string representation of this object.
override
updateEntryByIndex(int index, T? e) bool
override

Operators

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