As like the sample provided here in the link: https://blazor.syncfusion.com/demos/chart/pie?_ga=2.260368461.1942556528.1642919925-312463608.1637213985
I literally copy/pase the sample and When I run the app, Im getting the following error in browser Console.
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Blazor.Charts.SfAccumulationChart.CalculateSecondaryElementPosition()
at Syncfusion.Blazor.Charts.SfAccumulationChart.OnAfterScriptRendered()
at Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.SfDataBoundComponent.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.Charts.SfAccumulationChart.OnAfterRenderAsync(Boolean firstRender)
Here is my code. Im using "Syncfusion.Blazor.Charts" v19.4.0.43
<SfAccumulationChart Title="Percentage of Completion (as per last month end)">
<AccumulationChartSeriesCollection>
<AccumulationChartSeries DataSource="@StatisticsDetails" XName="Source" YName="Value"
Name="Source">
</AccumulationChartSeries>
</AccumulationChartSeriesCollection>
<AccumulationChartLegendSettings Visible="false"></AccumulationChartLegendSettings>
</SfAccumulationChart>
@code{
public List
{
new Statistics { Browser = "Chrome", Users = 37 },
new Statistics { Browser = "UC Browser", Users = 17 },
new Statistics { Browser = "iPhone", Users = 19 },
new Statistics { Browser = "Others", Users = 4 },
new Statistics { Browser = "Opera", Users = 11 },
new Statistics { Browser = "Android", Users = 12 },
};
public class Statistics
{
public string Browser { get; set; }
public double Users { get; set; }
}
}
|
<SfAccumulationChart Title="Percentage of Completion (as per last month end)">
<AccumulationChartSeriesCollection> <AccumulationChartSeries DataSource="@StatisticsDetails" XName="Browser" YName="Users" Name="Source"> </AccumulationChartSeries> </AccumulationChartSeriesCollection> <AccumulationChartLegendSettings Visible="false"></AccumulationChartLegendSettings> </SfAccumulationChart> |
Hi Swetha, thanks for the reply and samples. but I still have issue as same but was working fine on the sample you shared. Let me try to create a sample here.
Hi, Can you Try with Wasm. HEre is the sample to reproduce the issue.
https://drive.google.com/file/d/1W6ne9GahHwmPQGC6YAu1vU_ItUS63bY6/view?usp=sharing
Hi Swetha, did you get a chance to review this? Are we able to reproduce the issue?
Okay. Thanks for the update
Thanks. Also, the FeedbackURL your shared throws "404".
Hi Gopichandar,
Sorry for the inconvenience caused. We have now validated the provided feedback. Please ensure from your end.
Regards,
Durga G