Nativescript plugin for Charts
    Preparing search index...

    Created by philipp on 10/06/16.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    instance of the data-provider

    mHighlightBuffer: Highlight<Entry>[]

    buffer for storing previously highlighted values

    Methods

    • An array of Highlight objects corresponding to the selected xValue and dataSetIndex.

      Parameters

      • set: IBarDataSet
      • dataSetIndex: any
      • xVal: any
      • rounding: any

      Returns Highlight<Entry>[]

    • Returns the Highlight of the DataSet that contains the closest value on the y-axis.

      Parameters

      • closestValues: Highlight<Entry>[]

        contains two Highlight objects per DataSet closest to the selected x-position (determined by rounding up an down)

      • x: number
      • y: number
      • minSelectionDistance: number
      • Optionalaxis: AxisDependency

        the closest axis

      Returns Highlight<Entry>

    • Returns the index of the closest value inside the values array / ranges (stacked barchart) to the value given as a parameter.

      Parameters

      • ranges: any[]
      • value: any

      Returns number

    • Calculates the distance between the two given points.

      Parameters

      • x1: any
      • y1: any
      • x2: any
      • y2: any

      Returns number

    • Returns a Highlight object corresponding to the given x- and y- touch positions in pixels.

      Parameters

      • x: number
      • y: number

      Returns Highlight<Entry>[]

    • Returns the corresponding Highlight for a given xVal and x- and y-touch position in pixels.

      Parameters

      • xVal: any
      • x: any
      • y: any

      Returns Highlight<Entry>[]

    • Returns a list of Highlight objects representing the entries closest to the given xVal. The returned list contains two objects per DataSet (closest rounding up, closest rounding down).

      Parameters

      • xVal: any

        the transformed x-value of the x-touch position

      • Optionalx: any
      • Optionaly: any

      Returns Highlight<Entry>[]

    • Returns the minimum distance from a touch value (in pixels) to the closest value (in pixels) that is displayed in the chart.

      Parameters

      Returns number

    • This method creates the Highlight object that also indicates which value of a stacked BarEntry has been selected.

      Parameters

      • high: Highlight

        the Highlight to work with looking for stacked values

      • set: IBarDataSet
      • touchX: any
      • touchY: any
      • xVal: any
      • yVal: any

      Returns Highlight

    • Returns a recyclable MPPointD instance. Returns the corresponding xPos for a given touch-position in pixels.

      Parameters

      • x: any
      • y: any

      Returns any

    • Returns sorted highlights based on distance to touch x,y

      Parameters

      • closestValues: Highlight<Entry>[]

        contains two Highlight objects per DataSet closest to the selected x-position (determined by rounding up an down)

      • x: number
      • y: number
      • minSelectionDistance: number
      • Optionalaxis: AxisDependency

        the closest axis

      Returns Highlight<Entry>[]