Creating a simple doughnut series and can display the graph correctly. Decided that the Centerview would be something that I could use. Added the additional line of code to display a simple label in the centerview. Results in a Java Null pointer exception.
DoughnutSeries doughnutSeries = new DoughnutSeries()
{
ItemsSource = Data1,
XBindingPath = "Item",
YBindingPath = "Value",
DoughnutCoefficient = 0.6,
ExplodeAll = true,
DataMarkerPosition = CircularSeriesDataMarkerPosition.Inside
};
//This line which is intended to show a label in the center of the doughnutseries
doughnutSeries.CenterView = new Label() { Text = "CenterView" };
ACTUAL RESULT
Java.Lang.NullPointerException
Message=Attempt to read from field 'int android.view.ViewGroup$LayoutParams.width' on a null object reference
EXPECTED RESULT
Display a label with Text "CenterView" in the center of the doughnut graph.