diff --git a/lib/src/main/java/com/faskn/lib/Slice.kt b/lib/src/main/java/com/faskn/lib/Slice.kt index 1bd87d7..7f5ecb5 100644 --- a/lib/src/main/java/com/faskn/lib/Slice.kt +++ b/lib/src/main/java/com/faskn/lib/Slice.kt @@ -9,7 +9,7 @@ import androidx.annotation.Px data class Slice( val dataPoint: Float, - @ColorRes val color: Int, + val color: Int, val name: String, var arc: Arc? = null, @Px var scaledValue: Float? = 0f, @@ -22,4 +22,4 @@ data class Arc( ) { fun average(): Double = (startAngle / 2) + (sweepAngle / 2) + (((startAngle % 2) + (sweepAngle % 2)) / 2).toDouble() -} \ No newline at end of file +}