Created by Philpp Jahoda on 21/10/15.

Hierarchy (View Summary)

Implements

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • yVals: any
    • label: any
    • OptionalxProperty: any
    • OptionalyProperty: any

    Returns LineDataSet

Properties

axisDependency: AxisDependency

this specifies which axis this DataSet should be plotted against

circleColors: string[] | Color[]

List representing all colors that are used for the circles

circleHighRes: boolean

Property definining wheter circles are drawn in high res. Default true

circleHoleColor: Color

the color of the inner circles

circleHoleRadius: number

the hole radius of the circle-shaped value indicators

circleRadius: number

the radius of the circle-shaped value indicators

color: string | Color
colors: (string | Color)[]

List representing all colors that are used for this DataSet

cubicIntensity: number

sets the intensity of the cubic lines (if enabled). Max = 1 = very cubic, Min = 0.05f = low cubic effect, Default: 0.2f

dashPathEffect: DashPathEffect

the path effect of this DataSet that makes dashed lines possible

drawCircleHoleEnabled: boolean

Returns true if drawing the circle-holes is enabled, false if not.

drawCirclesEnabled: boolean

if true, drawing circles is enabled

drawFilledEnabled: boolean

if true, the data will also be drawn filled

drawHorizontalHighlightIndicator: boolean

Enables / disables the horizontal highlight-indicator. If disabled, the indicator is not drawn.

drawIconsEnabled: boolean

if true, y-icons are drawn on the chart

drawValuesEnabled: boolean

if true, y-values are drawn on the chart

drawVerticalHighlightIndicator: boolean

Enables / disables the vertical highlight-indicator. If disabled, the indicator is not drawn.

fillAlpha: number

transparency used for filling line surface

fillColor: string | Color

the color that is used for filling the line surface

fillDrawable: ImageSource

the drawable to be used for filling the line surface

fillFormatter: IFillFormatter

formatter for customizing the position of the fill-line

fillShader: any

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.

formLineDashEffect: any

The line dash path effect used for shapes that consist of lines.

Return `null` to use the default legend form line dash effect.

formLineWidth: number

The line width for drawing the form of this dataset in the legend

Return `Float.NaN` to use the default legend form line width.

formSize: number

The form size to draw for this dataset in the legend.

Return `Float.NaN` to use the default legend form size.

highlightColor: string | Color

Sets the color that is used for drawing the highlight indicators. Dont forget to resolve the color using getResources().getColor(...) or new Color(255, ...).

highlightDashPathEffect: any

the path effect for dashed highlight-lines

highlightEnabled: boolean

if true, value highlightning is enabled

highlightLineWidth: number

the width of the highlight indicator lines

iconProperty: string

property to access the "icon" value of an entry for this set

iconsOffset: { x: number; y: number }

the offset for drawing icons (in dp)

label: string

label that describes the DataSet or the data the DataSet represents

lineWidth: number

the width of the drawn data lines thinner line === better performance, thicker line === worse performance

maxFilterNumber: number

the max number allowed point before filtering. <= O means disabled

mCanCalculateMinMax: boolean
mFilteredValues: Entry[]
mFilterFunction: any
mIgnoreFiltered: boolean
mode: Mode

Drawing mode for this line dataset

mValues: Entry[] | ObservableArray<Entry>

the entries that this DataSet represents / holds together

mXMax: number

maximum x-value in the value array

mXMin: number

minimum x-value in the value array

mYMax: number

maximum y-value in the value array

mYMin: number

minimum y-value in the value array

shader: Shader

the path effect of this DataSet that makes dashed lines possible

spaceBottom: number

data space from the smallest value to the bottom in percent of the total axis range

spaceTop: number

data space from the highest value to the top in percent of the total axis range

useColorsForFill: boolean
useColorsForLine: boolean
valueColors: (string | Color)[]

List representing all colors that are used for drawing the actual values for this DataSet

valueFormatter: ValueFormatter

custom formatter that is used instead of the auto-formatter if set

valuesOffset: { x: number; y: number }

the offset for drawing values (in dp)

valueTextSize: number

the size of the value-text labels

valueTypeface: Font

the typeface used for the value text

visible: boolean

flag that indicates if the DataSet is visible or not

xProperty: string

property to access the "x" value of an entry for this set

yProperty: string

property to access the "y" value of an entry for this set

Accessors

  • set circleColor(color: any): 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.

    Parameters

    • color: any

    Returns void

  • set drawHighlightIndicators(enabled: any): void
  • Enables / disables both vertical and horizontal highlight-indicators.

    Parameters

    • enabled: any

    Returns void

  • get entryCount(): number
  • Returns the number of y-values this DataSet represents -> the size of the y-values array -> yvals.length

    Returns number

  • get filtered(): boolean
  • Returns boolean

  • get ignoreFiltered(): boolean
  • Returns boolean

  • set ignoreFiltered(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

  • get needsFormatter(): boolean
  • Returns boolean

  • set values(values: any): void
  • Returns the array of entries that this DataSet represents.

    Parameters

    • values: any

    Returns void

  • set valueTextColor(color: any): void
  • Sets the color the value-labels of this DataSet should have.

    Parameters

    • color: any

    Returns void

  • set valueTextColors(colors: any): void
  • Sets a list of colors to be used as the colors for the drawn values.

    Parameters

    • colors: any

    Returns void

  • get xMax(): number
  • returns the maximum x-value this DataSet holds

    Returns number

  • get xMin(): number
  • returns the minimum x-value this DataSet holds

    Returns number

  • get yMax(): number
  • returns the maximum y-value this DataSet holds

    Returns number

  • get yMin(): number
  • returns the minimum y-value this DataSet holds

    Returns number

Methods

  • Adds a new color to the colors array of the DataSet.

    Parameters

    • value: string | Color

    Returns void

  • 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.

    Parameters

    Returns boolean

  • 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.

    Parameters

    Returns void

  • Parameters

    • scaleX: number

    Returns void

  • Calculates the minimum and maximum x and y values (mXMin, this.mXMax, this.mYMin, this.mYMax).

    Returns void

  • Updates the min and max x and y value of this DataSet based on the given Entry.

    Parameters

    • Optionale: Entry
    • Optionalindex: number

    Returns void

  • Parameters

    • Optionale: Entry
    • Optionalindex: number

    Returns void

  • Parameters

    • e: Entry
    • Optionalindex: number

    Returns void

  • Calculates 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.

    Parameters

    • fromX: any
    • toX: any

    Returns void

  • Removes all values from this DataSet and does all necessary recalculations.

    Returns void

  • 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.

    Parameters

    Returns boolean

  • Enables 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.

    Parameters

    • lineLength: any

      the length of the line pieces

    • spaceLength: any

      the length of space in between the pieces

    • phase: any

      offset, in degrees (normally, use 0)

    Returns void

  • Enables the highlight-line to be drawn in dashed mode, e.g. like this "- - - - - -"

    Parameters

    • lineLength: any

      the length of the line pieces

    • spaceLength: any

      the length of space inbetween the line-pieces

    • phase: any

      offset, in degrees (normally, use 0)

    Returns void

  • Parameters

    • index: any

    Returns string | Color

  • Parameters

    • Optionalindex: number

    Returns string | Color

  • 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.

    Parameters

    • xValue: any

    Returns any[]

  • 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.

    Parameters

    • xValue: any

    Returns any[]

  • 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.

    Parameters

    • xValue: any

      the x-value

    • closestToY: any

      If there are multiple y-values for the specified x-value,

    • Optionalrounding: Rounding

      determine whether to round up/down/closest if there is no Entry matching the provided x-value

    Returns { entry: Entry; index: number }

  • 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.

    Parameters

    • xValue: any

      the x-value

    • closestToY: any

      If there are multiple y-values for the specified x-value,

    • Optionalrounding: Rounding

      determine whether to round up/down/closest if there is no Entry matching the provided x-value

    Returns Entry

  • 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.

    Parameters

    • xValue: any

      the x-value

    • closestToY: any

      If there are multiple y-values for the specified x-value,

    • rounding: any

      determine whether to round up/down/closest if there is no Entry matching the provided x-value

    Returns number

  • Parameters

    • Optionalindex: number

    Returns string | Color

  • Use this method to tell the data set that the underlying data has changed.

    Returns void

  • 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.

    Parameters

    Returns boolean

  • 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.

    Parameters

    • index: number

    Returns boolean

  • 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.

    Parameters

    • xValue: any

    Returns any

  • Removes the first Entry (at index 0) of this DataSet from the entries array. Returns true if successful, false if not.

    Returns any

  • Removes the last Entry (at index size-1) of this DataSet from the entries array. Returns true if successful, false if not.

    Returns any

  • Resets all colors of this DataSet and recreates the colors array.

    Returns void

  • Sets 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.

    Parameters

    • colors: string[] | Color[]

    Returns void

  • Sets a color with a specific alpha value.

    Parameters

    • color: string | Color
    • Optionalalpha: number

      from 0-255

    Returns void

  • Sets colors with a specific alpha value.

    Parameters

    • colors: any
    • Optionalalpha: number

    Returns void

  • Returns a string representation of an object.

    Returns string