Nativescript plugin for Charts
    Preparing search index...

    Baseclass of all axis renderers.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    mAxis: AxisBase

    base axis this axis renderer works with

    mAxisLabelPaint: Paint

    palet for the x-label values

    mAxisLinePaint: Paint

    palet for the line surrounding the chart

    mGetTransformedPositionsBuffer: TypedArray
    mGridPaint: Paint

    palet object for the grid lines

    mLimitLinePaint: Paint

    palet used for the limit lines

    mViewPortHandler: ViewPortHandler

    the component that handles the drawing area of the chart and it's offsets

    mYAxis: YAxis
    mZeroLinePaint: Paint
    transformer: Transformer

    transformer to transform values to screen pixels and return

    Accessors

    • get axisLabelsPaint(): Paint

      Returns the Paint object used for drawing the axis (labels).

      Returns Paint

    • get axisLinePaint(): Paint

      Returns the Paint object that is used for drawing the axis-line that goes alongside the axis.

      Returns Paint

    • get gridPaint(): Paint

      Returns the Paint object that is used for drawing the grid-lines of the axis.

      Returns Paint

    • get limitLinePaint(): Paint

      Returns Paint

    • get zeroLinePaint(): Paint

      Returns Paint

    Methods

    • Computes the axis values.

      Parameters

      • yMin: any

        the minimum y-value in the data object for this axis

      • yMax: any

        the maximum y-value in the data object for this axis

      • inverted: any

      Returns void

    • Sets up the axis values. Computes the desired number of labels between the two given extremes.

      Parameters

      • min: any
      • max: any

      Returns void

    • Draws the grid line at the specified position using the provided path.

      Parameters

      Returns void

    • Draw mark tickets

      Parameters

      • c: Canvas
      • fixedPosition: any
      • positions: any
      • ticklength: any

      Returns void

    • draws the y-labels on the specified x-position

      Parameters

      • c: Canvas
      • fixedPosition: any
      • positions: any
      • offset: any

      Returns void

    • Draws the zero line.

      Parameters

      • c: Canvas

      Returns void

    • Parameters

      • Optionalmin: any
      • Optionalmax: any
      • Optionalinverted: any

      Returns { max: any; min: any }

    • Returns RectF

    • Transforms the values contained in the axis entries to screen pixels and returns them in form of a let array of x- and y-coordinates.

      Returns number[]

    • draws the y-axis labels to the screen

      Parameters

      • c: Canvas

      Returns void

    • Draws the line that goes alongside the axis.

      Parameters

      • c: Canvas

      Returns void

    • Draws the grid lines belonging to the axis.

      Parameters

      • c: Canvas

      Returns void

    • Draws the LimitLines associated with this axis to the screen. This is the standard XAxis renderer using the YAxis limit lines.

      Parameters

      • c: Canvas

      Returns void