protected override void OnInit(EventArgs e)
{
base.OnInit(e);
if(IsDesignMode)
return;
foreach(PieChartValue pieChartValue in PieChartValues) {
if(String.IsNullOrWhiteSpace(pieChartValue.Category))
throw new Exception("Category is missing in the PieChartValue. Please provide a Category in the PieChartValue.");
}
}