createColoredMarkerValueFormatter

fun createColoredMarkerValueFormatter(format: (value: Double, color: Color) -> String): DefaultCartesianMarker.ValueFormatter(source)

Creates a DefaultCartesianMarker.ValueFormatter that colors the text to match the series color.

Parameters

format

A lambda that provides the string content for a given Y value and its series color.