Superclass of all render classes for the different data types (line, bar, ...).

Hierarchy (View Summary)

Constructors

Properties

animator: ChartAnimator

the animator object used to perform animations on the chart data

mBitmapCanvas: Canvas
mChart: PieChart
mDrawBitmap: WeakRef<ImageSource>

Bitmap for drawing the center hole

mHighlightPaint: Paint

palet used for highlighting values

mHolePaint: Paint

palet for the hole in the center of the pie chart and the transparent circle

mRenderPaint: Paint

main palet object used for rendering

mTransparentCirclePaint: Paint
mValuePaint: Paint

palet object for drawing values (text representing values of chart entries)

mViewPortHandler: ViewPortHandler

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

Accessors

  • get centerTextLastBounds(): RectF
  • Returns RectF

  • get centerTextPaint(): Paint
  • Returns Paint

  • get entryLabelsPaint(): Paint
  • Returns Paint

  • get highlightPaint(): Paint
  • Returns Paint

  • get holePaint(): Paint
  • Returns Paint

  • get rectBuffer(): RectF[]
  • Returns RectF[]

  • get renderPaint(): Paint
  • Returns Paint

  • get transparentCirclePaint(): Paint
  • Returns Paint

  • get valuePaint(): Paint
  • Returns Paint

Methods

  • Applies the required styling (provided by the DataSet) to the value-paint object.

    Parameters

    Returns void

  • Parameters

    • center: MPPointF
    • radius: any
    • angle: any
    • arcStartPointX: any
    • arcStartPointY: any
    • startAngle: any
    • sweepAngle: any

    Returns number

  • Draws the description text in the center of the pie chart makes most sense when center-hole is enabled.

    Parameters

    • c: Canvas

    Returns void

  • Draws the actual data in form of lines, bars, ... depending on Renderer subclass.

    Parameters

    • c: Canvas

    Returns void

  • Parameters

    Returns boolean

  • Draws an entry label at the specified position.

    Parameters

    • c: Canvas
    • label: any
    • x: any
    • y: any
    • paint: Paint

    Returns void

  • Draws any kind of additional information (e.g. line-circles).

    Parameters

    • c: Canvas

    Returns void

  • Draws all highlight indicators for the values that are currently highlighted.

    Parameters

    Returns void

  • Draws the hole in the center of the chart and the transparent circle / hole.

    Parameters

    • c: Canvas

    Returns void

  • Draws the icons of the given entry

    Type Parameters

    • T

    Parameters

    • canvas: Canvas

      canvas

    • chart: Chart<any, any, any>

      icon to draw

    • dataSet: DataSet<any>
    • dataSetIndex: number
    • entry: T
    • entryIndex: number
    • icon: ImageSource | Shape

      icon to draw

    • x: number

      position

    • y: number

      position

    • OptionalcustomRender: BaseCustomRenderer

    Returns void

  • This gives all pie-slices a rounded edge.

    Parameters

    • c: Canvas

    Returns void

  • Draws the value of the given entry by using the provided IValueFormatter.

    Type Parameters

    • T

    Parameters

    • c: Canvas

      canvas

    • chart: Chart<any, any, any>
    • dataSet: DataSet<any>
    • dataSetIndex: number
    • entry: T

      label to draw

    • entryIndex: any

      label to draw

    • valueText: string

      label to draw

    • x: number

      position

    • y: number

      position

    • color: string | Color
    • paint: Paint
    • OptionalcustomRender: BaseCustomRenderer

    Returns void

  • Loops over all Entrys and draws their values.

    Parameters

    • c: Canvas

    Returns void

  • Calculates the sliceSpace to use based on visible values and their size compared to the set sliceSpace.

    Parameters

    Returns number

  • Returns void

  • Releases the drawing bitmap.

    Returns void