@Krishna_R
my piechart's item is like this:
Table(
{
Col: "Annual Leave", Value: CurrentUserData.AnnualLeave
},
{
Col: "Calamity Leave", Value: CurrentUserData.CalamityLeave
},
{
Col: "Carry Forward Leave", Value: CurrentUserData.CarryForwardLeave
},
{
Col: "Emergency Leave", Value: CurrentUserData.EmergencyLeave
},
{
Col: "Hospitalization Leave", Value: CurrentUserData.HospitalizationLeave
},
{
Col: "Maternity Leave", Value: CurrentUserData.MaternityLeave
},
{
Col: "Paternity Leave", Value: CurrentUserData.PaternityLeave
},
{
Col: "Sick Leave", Value: CurrentUserData.SickLeave
},
{
Col: "Quarantine Leave", Value: CurrentUserData.QuarantineLeave
}
)
So how to add column using the first approach?
I don't think can use the second approach as the pie chart will be different for each user. So the leave type can be different thus making the pie chart looks different. But then, the text label has been put beside the value so it will move right.