π―Target Donut Plot Row
Last updated
Last updated
// This is the percentage achieved.
val percentage = DecimalFormat("#.##").format(achieved / target * 100)
// This function creates the plot.
DonutRowChartStrategy.TargetDonutPlotRow(
circularData = dataSet,
circularCenter = TextCenterStrategy(
text = "$percentage %" // Text to be shown in the middle of the plot
)
)