drawHighlight

open fun drawHighlight(drawingZone: DrawingZone, highlightedData: Collection<Datum<DOMAIN>>)

Draw a highlighted sign on the DrawingZone for each elements of a given dataset.

Use the positions (MarkX.x, MarkY.y...) lambdas to draw signs on the expected positions.

Notes :

  • You usually want to clear the DrawingZone before drawing new signs.

  • Depending on the positions lambdas, some signs may be drawn out of the drawing zone and they may be skipped.

Parameters

drawingZone

the zone allocated by the Chart component for the Mark to draw itself

highlightedData

a collection of highlighted Datum objects