-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
Adding Color.Transparent to
val donutChartConfig = PieChartConfig(
backgroundColor = Color.Transparent, //transparent color
strokeWidth = 120f,
activeSliceAlpha = .9f,
isAnimationEnable = true,
labelVisible = true,
labelColor = Color.Black,
isEllipsizeEnabled = true,
labelFontSize = 16.sp,
chartPadding = 16,
)
Column(
modifier = Modifier
.fillMaxWidth().padding(horizontal = 12.dp, vertical = 8.dp),
horizontalAlignment = Alignment.CenterHorizontally,
) {
DonutPieChart(
modifier = Modifier
.fillMaxWidth()
.background(Color.Transparent),
donutChartData,
donutChartConfig
)
Legend(donutChartData.slices, listOfColor)
}Results in a black background behind the circle instead of a transparent background.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels