DefaultCartesianMarker
open class DefaultCartesianMarker(label: TextComponent, valueFormatter: DefaultCartesianMarker.ValueFormatter = ValueFormatter.default(), labelPosition: DefaultCartesianMarker.LabelPosition = LabelPosition.Top, indicator: (Int) -> Component? = null, indicatorSizeDp: Float = Defaults.MARKER_INDICATOR_SIZE, guideline: LineComponent? = null) : CartesianMarker
The default CartesianMarker implementation.
Constructors
Link copied to clipboard
constructor(label: TextComponent, valueFormatter: DefaultCartesianMarker.ValueFormatter = ValueFormatter.default(), labelPosition: DefaultCartesianMarker.LabelPosition = LabelPosition.Top, indicator: (Int) -> Component? = null, indicatorSizeDp: Float = Defaults.MARKER_INDICATOR_SIZE, guideline: LineComponent? = null)
Types
Link copied to clipboard
Specifies the position of a DefaultCartesianMarker’s label.
Link copied to clipboard
Formats CartesianMarker values for display.
Functions
Link copied to clipboard
open override fun drawOverLayers(context: CartesianDrawingContext, targets: List<CartesianMarker.Target>)
Draws content over the CartesianLayers.
Link copied to clipboard
open override fun updateLayerMargins(context: CartesianMeasuringContext, layerMargins: CartesianLayerMargins, layerDimensions: CartesianLayerDimensions, model: CartesianChartModel)
Ensures that there are sufficient CartesianLayer-area margins.