SfChart documentation samples do not render in 18.4.30

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; }
    }

2 Replies 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team December 23, 2020 02:59 PM UTC

Hi Travis,

We have logged a documentation task for this, and the changes will be available in our upcoming Volume 1 Main Release which is expected to be rolled out at end of March 2021. We will let you know once it will be refreshed in online.  

 
Kindly revert us if you have any concerns. 
  
Regards, 
Durga G 



DG Durga Gopalakrishnan Syncfusion Team April 4, 2021 04:45 PM UTC

Hi Travis,  
 
Thanks for being patience.  
 
We have completed the reported changes and refreshed in live site. Please find the below documentation link.  
 
 
Kindly revert us, if you have any concerns.  
 
Regards,  
Durga G 


Marked as answer
Loader.
Up arrow icon