Optional
xProperty: anyOptional
yProperty: anythis specifies which axis this DataSet should be plotted against
List representing all colors that are used for the circles
Property definining wheter circles are drawn in high res. Default true
the color of the inner circles
the hole radius of the circle-shaped value indicators
the radius of the circle-shaped value indicators
List representing all colors that are used for this DataSet
sets the intensity of the cubic lines (if enabled). Max = 1 = very cubic, Min = 0.05f = low cubic effect, Default: 0.2f
the path effect of this DataSet that makes dashed lines possible
Returns true if drawing the circle-holes is enabled, false if not.
if true, drawing circles is enabled
if true, the data will also be drawn filled
Enables / disables the horizontal highlight-indicator. If disabled, the indicator is not drawn.
if true, y-icons are drawn on the chart
if true, y-values are drawn on the chart
Enables / disables the vertical highlight-indicator. If disabled, the indicator is not drawn.
transparency used for filling line surface
the color that is used for filling the line surface
the drawable to be used for filling the line surface
formatter for customizing the position of the fill-line
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, ...).
the path effect for dashed highlight-lines
if true, value highlightning is enabled
the width of the highlight indicator lines
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
the width of the drawn data lines thinner line === better performance, thicker line === worse performance
the max number allowed point before filtering. <= O means disabled
Protected
mProtected
mDrawing mode for this line dataset
Protected
mthe entries that this DataSet represents / holds together
Protected
mXMaxmaximum x-value in the value array
Protected
mXMinminimum x-value in the value array
Protected
mYMaxmaximum y-value in the value array
Protected
mYMinminimum y-value in the value array
the path effect of this DataSet that makes dashed lines possible
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
Sets the one and ONLY color that should be used for this DataSet. Internally, this recreates the colors array and adds the specified color.
Enables / disables both vertical and horizontal highlight-indicators.
Returns the number of y-values this DataSet represents -> the size of the y-values array -> yvals.length
Returns the array of entries that this DataSet represents.
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 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.
Protected
calcProtected
calcProtected
calcEnables the line to be drawn in dashed mode, e.g. like this "- - - - - -". THIS ONLY WORKS IF HARDWARE-ACCELERATION IS TURNED OFF. Keep in mind that hardware acceleration boosts performance.
the length of the line pieces
the length of space in between the pieces
offset, in degrees (normally, use 0)
Enables the highlight-line to be drawn in dashed mode, e.g. like this "- - - - - -"
the length of the line pieces
the length of space inbetween the line-pieces
offset, in degrees (normally, use 0)
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 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 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
getProtected
initSets the colors that should be used for the circles of this DataSet. Colors are reused as soon as the number of Entries the DataSet represents is higher than the size of the colors array. Make sure that the colors are already prepared (by calling getResources().getColor(...)) before adding them to the DataSet.
Protected
update
Created by Philpp Jahoda on 21/10/15.