drawSelection

open fun drawSelection(drawingZone: DrawingZone, selectedData: Collection<Datum<DOMAIN>>)

Draw a selected 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

selectedData

a collection of selected Datum objects