patrykandpatrick / vico

A light and extensible chart library for Android.
https://patrykandpatrick.com/vico/wiki
Apache License 2.0
2.07k stars 125 forks source link

DefaultCartesianMarker ignores the text component label color #853

Closed Tyler-Lopez closed 3 weeks ago

Tyler-Lopez commented 3 weeks ago

How to reproduce

Attempt to set the default cartesian marker's label text color to a value that does not match the color of the line.

Observed behavior

The text color always matches the line color of the corresponding line.

Expected behavior

It should be what I set it to.

Vico version(s)

2.0.0-alpha.27

Android version(s)

33

Additional information

No response

Tyler-Lopez commented 3 weeks ago

This is solved through

    return rememberDefaultCartesianMarker(
        label = label,
        valueFormatter = DefaultCartesianMarkerValueFormatter(
            colorCode = false,
        )
patrickmichalik commented 3 weeks ago

Thanks for sharing the solution!