You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IllegalStateException: Offset is unspecified at androidx.compose.ui.geometry.Offset.getX-impl(Offset.kt:67) at com.aay.compose.donutChart.component.PiePedigreeChartKt.drawPedigreeChart-88mDfTA(PiePedigreeChart.kt:62) at com.aay.compose.donutChart.PieChartKt$drawPieChart$1.invoke(PieChart.kt:168) at com.aay.compose.donutChart.PieChartKt$drawPieChart$1.invoke(PieChart.kt:159) at androidx.compose.ui.draw.DrawBackgroundModifier.draw(DrawModifier.kt:116)
This particularly happens when the sum of the data is 0.
java.lang.IllegalStateException: Offset is unspecified at androidx.compose.ui.geometry.Offset.getX-impl(Offset.kt:67) at com.aay.compose.donutChart.component.PiePedigreeChartKt.drawPedigreeChart-88mDfTA(PiePedigreeChart.kt:62) at com.aay.compose.donutChart.PieChartKt$drawPieChart$1.invoke(PieChart.kt:168) at com.aay.compose.donutChart.PieChartKt$drawPieChart$1.invoke(PieChart.kt:159) at androidx.compose.ui.draw.DrawBackgroundModifier.draw(DrawModifier.kt:116)
This particularly happens when the sum of the data is 0.
I'm using version
Beta-0.0.5
.May be a check here would resolve the issue?
if (pieChartData.sumOf { it.data } <= 0) return
The text was updated successfully, but these errors were encountered: