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
I set the values and colors in the same order but when I display the donut the last 3 values are inverted, also when I set the donutTotal to the sum of all values the DonutChart still have an empty space.
`This is my code:
donutChart.donutTotal = 430F
donutChart.donutColors = intArrayOf(
Color.parseColor("#00c853"), // green
Color.parseColor("#5c6bc0"), // blue
Color.parseColor("#ffd600"), // yellow
Color.parseColor("#d50000"), // red
Color.parseColor("#9e9e9e") // gray
)
val donutSet = listOf(
7F, // green
346F, // blue
13F, // yellow
19F, // red
45F // gray
)
donutChart.animation.duration = 1000L
donutChart.animate(donutSet)`
I set the values and colors in the same order but when I display the donut the last 3 values are inverted, also when I set the donutTotal to the sum of all values the DonutChart still have an empty space.
`This is my code:
`XML
The result:
The text was updated successfully, but these errors were encountered: