Abstract
Creates a new 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.
Optional
xProperty: anyOptional
yProperty: anythis specifies which axis this DataSet should be plotted against
List representing all colors that are used for this DataSet
if true, y-icons are drawn on the chart
if true, y-values are drawn on the chart
the shader to be used for filling the line surface
The form to draw for this dataset in the legend.
Return `DEFAULT` to use the default legend form.The line dash path effect used for shapes that consist of lines.
Return `null` to use the default legend form line dash effect.The line width for drawing the form of this dataset in the legend
Return `Float.NaN` to use the default legend form line width.The form size to draw for this dataset in the legend.
Return `Float.NaN` to use the default legend form size.Sets the color that is used for drawing the highlight indicators. Dont forget to resolve the color using getResources().getColor(...) or new Color(255, ...).
if true, value highlightning is enabled
property to access the "icon" value of an entry for this set
the offset for drawing icons (in dp)
label that describes the DataSet or the data the DataSet represents
Protected
mthe entries that this DataSet represents / holds together
Protected
mmaximum x-value in the value array
Protected
mminimum x-value in the value array
Protected
mmaximum y-value in the value array
Protected
mminimum y-value in the value array
data space from the smallest value to the bottom in percent of the total axis range
data space from the highest value to the top in percent of the total axis range
List representing all colors that are used for drawing the actual values for this DataSet
custom formatter that is used instead of the auto-formatter if set
the offset for drawing values (in dp)
the size of the value-text labels
the typeface used for the value text
flag that indicates if the DataSet is visible or not
property to access the "x" value of an entry for this set
property to access the "y" value of an entry for this set
Returns the number of y-values this DataSet represents -> the size of the y-values array -> yvals.length
Sets the color the value-labels of this DataSet should have.
Sets a list of colors to be used as the colors for the drawn values.
returns the maximum x-value this DataSet holds
returns the minimum x-value this DataSet holds
returns the maximum y-value this DataSet holds
returns the minimum y-value this DataSet holds
Adds a new color to the colors array of the DataSet.
Adds an Entry to the DataSet dynamically. Entries are added to the end of the list. This will also recalculate the current minimum and maximum values of the DataSet and the value-sum.
Adds an Entry to the DataSet dynamically. Entries are added to their appropriate index in the values array respective to their x-position. This will also recalculate the current minimum and maximum values of the DataSet and the value-sum.
Calculates the minimum and maximum x and y values (mXMin, this.mXMax, this.mYMin, this.mYMax).
Protected
calcUpdates the min and max x and y value of this DataSet based on the given Entry.
Optional
e: TOptional
index: numberProtected
calcOptional
e: TOptional
index: numberProtected
calcOptional
index: numberCalculates the min and max y-values from the Entry closest to the given fromX to the Entry closest to the given toX value. This is only needed for the autoScaleMinMax feature.
Removes all values from this DataSet and does all necessary recalculations.
Checks if this DataSet contains the specified Entry. Returns true if so, false if not. NOTE: Performance is pretty bad on this one, do not over-use in performance critical situations.
Returns all Entry objects found at the given x-value with binary search. An empty array if no Entry object at that x-value. INFORMATION: This method does calculations at runtime. Do not over-use in performance critical situations.
Returns all Entry objects found at the given x-value with binary search. An empty array if no Entry object at that x-value. INFORMATION: This method does calculations at runtime. Do not over-use in performance critical situations.
Returns the first Entry object found at the given x-value with binary search. If the no Entry at the specified x-value is found, this method returns the Entry at the closest x-value according to the rounding. INFORMATION: This method does calculations at runtime. Do not over-use in performance critical situations.
the x-value
If there are multiple y-values for the specified x-value,
Optional
rounding: Roundingdetermine whether to round up/down/closest if there is no Entry matching the provided x-value
Returns the Entry object found at the given index (NOT xIndex) in the values array.
Returns the first Entry object found at the given x-value with binary search. If the no Entry at the specified x-value is found, this method returns the Entry at the closest x-value according to the rounding. INFORMATION: This method does calculations at runtime. Do not over-use in performance critical situations.
the x-value
If there are multiple y-values for the specified x-value,
Optional
rounding: Roundingdetermine whether to round up/down/closest if there is no Entry matching the provided x-value
Returns the position of the provided entry in the DataSets Entry array. Returns -1 if doesn't exist.
Returns the first Entry index found at the given x-value with binary search. If the no Entry at the specified x-value is found, this method returns the Entry at the closest x-value according to the rounding. INFORMATION: This method does calculations at runtime. Do not over-use in performance critical situations.
the x-value
If there are multiple y-values for the specified x-value,
determine whether to round up/down/closest if there is no Entry matching the provided x-value
Protected
getOptional
index: numberInitializes DataSet chart data.
Protected
initUse this method to tell the data set that the underlying data has changed.
Removes an Entry from the DataSets entries array. This will also recalculate the current minimum and maximum values of the DataSet and the value-sum. Returns true if an Entry was removed, false if no Entry could be removed.
Removes the Entry object at the given index in the values array from the DataSet. Returns true if an Entry was removed, false if no Entry could be removed.
Removes the Entry object closest to the given x-value from the DataSet. Returns true if an Entry was removed, false if no Entry could be removed.
Removes the first Entry (at index 0) of this DataSet from the entries array. Returns true if successful, false if not.
Removes the last Entry (at index size-1) of this DataSet from the entries array. Returns true if successful, false if not.
Resets all colors of this DataSet and recreates the colors array.
Sets a color with a specific alpha value.
Optional
alpha: numberfrom 0-255
Sets colors with a specific alpha value.
Optional
alpha: numberReturns a string representation of an object.
Protected
update
Baseclass of all DataSets for Bar-, Line-, Scatter- and CandleStickChart.