-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offset is unspecified #102
Comments
share the sample data you used to show it in this chart! |
In this situation, this error occurs in the Offset class. |
val mData: List<PieChartData> by lazy {
listOf(
PieChartData(
partName = Constants.TYPE_CREDIT,
data = 0.0,
color = colorGreenDark
), PieChartData(
partName = Constants.TYPE_DEBIT,
data = 0.0,
color = colorRedDark
)
)
}
Row(modifier = Modifier.padding(all = 16.dp)) {
DonutChart(
modifier = Modifier.fillMaxSize(),
pieChartData = mData,
centerTitle = "Balance".uppercase(),
centerTitleStyle = TextStyle.Default.copy(
fontSize = 14.sp, fontWeight = FontWeight.Bold
),
descriptionStyle = TextStyle.Default.copy(
fontSize = 14.sp,
fontWeight = FontWeight.Bold,
),
textRatioStyle = TextStyle.Default.copy(fontSize = 14.sp),
outerCircularColor = MaterialTheme.colorScheme.primary,
innerCircularColor = MaterialTheme.colorScheme.primary,
ratioLineColor = MaterialTheme.colorScheme.primary,
legendPosition = LegendPosition.BOTTOM
)
} |
App crash when value sum is |
You are right. |
Kotlin: 1.9.20
Compose: compose-bom:2023.10.01
Android Studio Giraffe | 2022.3.1 Patch 4
Build #AI-223.8836.35.2231.11090377, built on November 14, 2023
The text was updated successfully, but these errors were encountered: