Nativescript plugin for Charts
    Preparing search index...

    Abstract baseclass of all Renderers.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    computedEntries: LegendEntry[]
    legendFontMetrics: FontMetrics
    mLegend: Legend

    the legend object this renderer renders

    mLegendFormPaint: Paint

    palet used for the legend forms

    mLegendLabelPaint: Paint

    palet for the legend labels

    mViewPortHandler: ViewPortHandler

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

    Accessors

    • get formPaint(): Paint

      Returns Paint

    • get labelPaint(): Paint

      Returns Paint

    Methods

    • Prepares the legend and calculates all needed forms, labels and colors.

      Parameters

      Returns void

    • Draws the Legend-form at the given position with the color at the given index.

      Parameters

      • c: Canvas

        canvas to draw with

      • x: any

        position

      • y: any

        position

      • entry: LegendEntry

        the entry to render

      • legend: Legend

        the legend context

      • paint: Paint

      Returns void

    • Draws the provided label at the given position.

      Parameters

      • c: Canvas

        canvas to draw with

      • x: any
      • y: any
      • label: any

        the label to draw

      • paint: Paint

      Returns void

    • Parameters

      • c: Canvas

      Returns void