Nativescript plugin for Charts
    Preparing search index...

    Transformer class for the HorizontalBarChart.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    mMatrixOffset: Matrix

    matrix for handling the different offsets of the chart

    mMatrixValueToPx: Matrix

    matrix to map the values to the screen pixels

    mPixelToValueMatrixBuffer: Matrix
    mValuePointsForGenerateTransformedValues: TypedArray
    mValuePointsForGenerateTransformedValuesBubble: TypedArray
    mValuePointsForGenerateTransformedValuesCandle: TypedArray
    mValuePointsForGenerateTransformedValuesScatter: TypedArray
    mViewPortHandler: ViewPortHandler

    Methods

    • Transforms an List of Entry into a let array containing the x and y values transformed with all matrices for the BUBBLECHART.

      Parameters

      Returns { count: number; points: number[] | TypedArray }

    • Transforms an List of Entry into a float array containing the x and y values transformed with all matrices for the BUBBLECHART.

      Parameters

      Returns { count: number; points: number[] | TypedArray }

    • Transforms an List of Entry into a let array containing the x and y values transformed with all matrices for the CANDLESTICKCHART.

      Parameters

      Returns { count: number; points: number[] | TypedArray }

    • Transforms an List of Entry into a let array containing the x and y values transformed with all matrices for the SCATTERCHART.

      Parameters

      Returns { count: number; points: number[] | TypedArray }

    • Returns Matrix

    • Returns a recyclable MPPointD instance. Returns the x and y coordinates (pixels) for a given x and y value in the chart.

      Parameters

      • x: any
      • y: any

      Returns { x: number; y: number }

    • Returns Matrix

    • Returns a recyclable MPPointD instance. returns the x and y values in the chart at the given touch point (encapsulated in a MPPointD). This method transforms pixel coordinates to coordinates / values in the chart. This is the opposite method to getPixelForValues(...).

      Parameters

      • x: any
      • y: any
      • OptionaloutputPoint: any

      Returns any

    • Parameters

      • matrix: Matrix
      • pts: number[] | TypedArray

      Returns void

    • Transforms multiple paths will all matrices.

      Parameters

      • paths: Path[]

      Returns void

    • transform a path with all the given matrices VERY IMPORTANT: keep order to value-touch-offset

      Parameters

      • path: Path

      Returns void

    • Transforms the given array of touch positions (pixels) (x, y, x, y, ...) into values on the chart.

      Parameters

      • pixels: any

      Returns void

    • Transform an array of points with all matrices. VERY IMPORTANT: Keep matrix order "value-touch-offset" when transforming.

      Parameters

      • pts: number[] | TypedArray

      Returns void

    • Prepares the matrix that contains all offsets.

      Parameters

      • inverted: any

      Returns void

    • Prepares the matrix that transforms values to pixels. Calculates the scale factors from the charts size and offsets.

      Parameters

      • xChartMin: any
      • deltaX: any
      • deltaY: any
      • yChartMin: any

      Returns void

    • Transform a rectangle with all matrices with potential animation phases.

      Parameters

      • r: Rect
      • phaseY: any

      Returns void

    • Parameters

      • r: Rect
      • phaseY: any

      Returns void

    • transforms multiple rects with all matrices

      Parameters

      • rects: Rect[]

      Returns void

    • Transform a rectangle with all matrices.

      Parameters

      • r: any

      Returns void

    • Transform a rectangle with all matrices with potential animation phases.

      Parameters

      • r: Rect
      • OptionalphaseY: any

      Returns void