draw

open fun draw(context: DrawContext, bounds: RectF, markedEntries: List<Marker.EntryModel>, chartValuesProvider: ChartValuesProvider)

Draws the marker.

Parameters

context

the DrawContext used to draw the marker.

bounds

the bounds in which the marker is drawn.

markedEntries

a list of EntryModels representing the entries to which the marker refers.

chartValuesProvider

open fun draw(context: DrawContext, bounds: RectF, markedEntries: List<Marker.EntryModel>)

Deprecated

Use the version of `draw` that takes a `ChartValuesProvider` as an argument.

Replace with

draw(context, bounds, markedEntries, chartValuesProvider)

Draws the marker.

Parameters

context

the DrawContext used to draw the marker.

bounds

the bounds in which the marker is drawn.

markedEntries

a list of EntryModels representing the entries to which the marker refers.