chartDrawContext

fun chartDrawContext(canvas: Canvas, elevationOverlayColor: Int, measureContext: MeasureContext, markerTouchPoint: Point?, horizontalDimensions: HorizontalDimensions, chartBounds: RectF, horizontalScroll: Float, zoom: Float): ChartDrawContext

The anonymous implementation of ChartDrawContext.

Parameters

canvas

the canvas on which the Chart is to be drawn.

elevationOverlayColor

the color of elevation overlays, applied to ShapeComponents that cast shadows.

measureContext

holds data used for component measurements.

markerTouchPoint

the point inside the chart’s bounds where physical touch is occurring.

horizontalDimensions

holds information on the Chart’s horizontal dimensions.

chartBounds

the bounds in which the Chart will be drawn.

horizontalScroll

the horizontal scroll.

zoom

the zoom factor.

See also