Slice

fun Slice(@FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()fraction: Float, @ColorInt() color: Int, @ColorInt() colorEnd: Int = color, label: String = NumberFormat.getPercentInstance().format(fraction), @ColorInt() labelColor: Int? = null, @Dimension() labelSize: Float? = null, labelFont: Typeface? = null, @DrawableRes() labelIcon: Int? = null, @Dimension() labelIconHeight: Float? = null, @Dimension() labelIconMargin: Float? = null, @ColorInt() labelIconTint: Int? = null, labelIconPlacement: PieChart.IconPlacement? = null, @Dimension() outsideLabelMargin: Float? = null, pointer: PieChart.SlicePointer? = null, legend: String = "", @ColorInt() legendColor: Int? = null, @Dimension() legendSize: Float? = null, @DrawableRes() legendIcon: Int? = null, @Dimension() legendIconHeight: Float? = null, @Dimension() legendIconMargin: Float? = null, @ColorInt() legendIconTint: Int? = color, @ColorInt() legendPercentageColor: Int? = null, @Dimension() legendPercentageSize: Float? = null, @Dimension() legendPercentageMargin: Float? = null, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()legendIconAlpha: Float? = 1f, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()scale: Float = 1f)