CartesianMarkerController

Controls CartesianMarker visibility.

Types

Link copied to clipboard
object Companion

Houses CartesianMarkerController singletons and factory functions.

Link copied to clipboard

Specifies whether a marker retains its x-value or its on-screen position when the x-value corresponding to its position changes for non-gesture reasons (for example, an automatic scroll or a CartesianChartModel update).

Properties

Link copied to clipboard

Whether this CartesianMarkerController wants to handle long presses.

Link copied to clipboard

Whether to consume move touch events when scroll is disabled.

Link copied to clipboard

Specifies whether the marker retains its x-value or its on-screen position when the x-value corresponding to its position changes for non-gesture reasons (for example, an automatic scroll or a CartesianChartModel update).

Functions

Link copied to clipboard

Indicates whether this CartesianMarkerController wants to respond to interaction. If true is returned, shouldShowMarker is called; otherwise, the marker visibility remains unchanged.

Link copied to clipboard
abstract fun shouldShowMarker(interaction: Interaction, targets: List<CartesianMarker.Target>): Boolean

Whether the marker should be visible.