Abstract
Constructor taking single or multiple DataSet objects.
Optional
dataSets: T[]Protected
marray that holds all DataSets the ChartData object represents
maximum x-value in the value array
minimum x-value in the value array
maximum y-value in the value array across all axes
the minimum y-value in the value array across all axes
Returns all colors used across all DataSet objects this object represents.
returns the number of LineDataSets this object contains
Returns all DataSet objects this ChartData object holds.
Enables / disables drawing values (value-text) for all DataSets this data object contains.
Returns the total entry count across all DataSet objects this data object contains.
Returns true if highlighting of all underlying values is enabled, false if not.
Returns the DataSet object with the maximum number of entries or null if there are no DataSets.
Sets a custom IValueFormatter for all DataSets this data object contains.
Sets the color of the value-text (color in which the value-labels are drawn) for all DataSets this data object contains.
Sets the same list of value-colors for all DataSets this data object contains.
Sets the size (in dp) of the value-text for all DataSets this data object contains.
Sets the Typeface for all value-labels for all DataSets this data object contains.
Returns the maximum x-value this data object contains.
Returns the minimum x-value this data object contains.
Adds an Entry to the DataSet at the specified index. Entries are added to the end of the list.
Calc minimum and maximum values (both x and y) over all DataSets.
Protected
calcProtected
calcAdjusts the current minimum and maximum values based on the provided Entry object.
Calc minimum and maximum y-values over all DataSets. Tell DataSets to recalculate their min and max y-values, this is only needed for autoScaleMinMax.
the x-value to start the calculation from
the x-value to which the calculation should be performed
Clears this data object from all DataSets and removes all Entries. Don't forget to invalidate the chart after this.
Checks if this data object contains the specified DataSet. Returns true if so, false if not.
Returns the DataSet object with the given label. Search can be case sensitive or not. IMPORTANT: This method does calculations at runtime. Use with care in performance critical situations.
Optional
ignorecase: booleanProtected
getRetrieve the index of a DataSet with a specific label from the ChartData. Search can be case sensitive or not. IMPORTANT: This method does calculations at runtime, do not over-use in performance critical situations.
the DataSet array to search
Optional
ignorecase: booleanif true, the search is not case-sensitive
Returns the labels of all DataSets as a string array.
Protected
getReturns the index of the provided DataSet in the DataSet array of this data object, or -1 if it does not exist.
Returns the maximum y-value for the specified axis.
Optional
axis: AxisDependencyReturns the minimum y-value for the specified axis.
Optional
axis: anyCall this method to let the ChartData know that the underlying data has changed. Calling this performs all necessary recalculations needed when the contained data has changed.
Removes the given DataSet from this data object. Also recalculates all minimum and maximum values. Returns true if a DataSet was removed, false if no DataSet could be removed.
Removes the DataSet at the given index in the DataSet array from the data object. Also recalculates all minimum and maximum values. Returns true if a DataSet was removed, false if no DataSet could be removed.
Removes the given Entry object from the DataSet at the specified index.
Removes the Entry object closest to the given DataSet at the specified index. Returns true if an Entry was removed, false if no Entry was found that meets the specified requirements.
Removes the Entry object closest to the given DataSet at the specified index. Returns true if an Entry was removed, false if no Entry was found that meets the specified requirements.
Enables / disables highlighting values for all DataSets this data object contains. If set to true, this means that values can be highlighted programmatically or by touch gesture.
Baseclass for all Line, Bar, Scatter, Candle and Bubble data.