-
Columu chart (mergeMode=stacked). I want to customize the colors for stacked bars after every three segments, instead of repeating the colors for every three segments. Is there a way to achieve this? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
xiaoyvyv
Jan 11, 2024
Replies: 1 comment 3 replies
-
我知道了 val cartesianLayer =
binding.chartView.chart?.layers?.firstOrNull() as? ColumnCartesianLayer
cartesianLayer?.columns = listOf(
LineComponent(
color = Color.BLUE
),
LineComponent(
color = Color.RED
),
LineComponent(
color = Color.GREEN
),
LineComponent(
color = Color.CYAN
),
LineComponent(
color = Color.MAGENTA
)
) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Gowsky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我知道了