Using 18.4.30 or 18.4.31 (server side blazor) .NET5 or .NET core 3.1
If you try to render a chart using the documentation examples you will get a Null reference error:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Syncfusion.Blazor
StackTrace:
at Syncfusion.Blazor.Charts.Chart.Internal.ChartSeriesRenderer.ProcessJsonData()
If you add Getters and Setters to the object class the sample will render as expected
For Line example change:
public class ChartData
{
public string X;
public double Y;
}
To this:
public class ChartData
{
public string X { get; set; }
public double Y { get; set; }
}