Issue: The RCChartLabelHelper function does not correctly assign colors to all labels.
the issue happens when first Bars does not contain all the labels
in the sample app
@Composable
fun RowScope.ColumnSample2() {
val data = remember {
listOf(
Bars(
label = "Jan",
values = listOf(
Bars.Data(
label = "Linux",
value = 50.0,
color = Brush.verticalGradient(
listOf(
Color(0xFFE65100),
Color(0xFFFFD54F),
)
)
),
Bars.Data(
label = "Windows",
value = 100.0,
color = Brush.verticalGradient(
listOf(
Color(0xFF7E57C2),
Color(0xFF7986CB),
)
)
),
)
),
Bars(
label = "Feb",
values = listOf(
Bars.Data(
label = "Linux",
value = 25.0,
color = Brush.verticalGradient(
listOf(
Color(0xFFE65100),
Color(0xFFFFD54F),
)
)
),
Bars.Data(
label = "Windows",
value = 50.0,
color = Brush.verticalGradient(
listOf(
Color(0xFF7E57C2),
Color(0xFF7986CB),
)
)
),
Bars.Data(
label = "Android",
value = 45.0,
color = Brush.verticalGradient(
listOf(
Color(0xFFB71C1C),
Color(0xFFEC407A),
)
)
),
)
),
//..
I deleted Android from the bars causing this issue
Issue: The RCChartLabelHelper function does not correctly assign colors to all labels. the issue happens when first Bars does not contain all the labels in the sample app
I deleted Android from the bars causing this issue