Empty chart on OnInitializedAsync

I'm having a strange issue rendering a chart. The chart doesn't show any data on initial page load, but renders fine after a browser refresh or page navigation.

I've attached a quick sample app. Thank you.


Attachment: BlazorServerApp1_aa2bac6.zip


3 Replies 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team October 1, 2021 04:01 PM UTC

Hi Gordon, 

Greetings from Syncfusion. 

We have ensured your reported scenario with attached sample. Since chart is rendered before fetching the data from server, empty chart first and then data is updated. We request you to include the below snippet in your application to overcome the reported scenario.  

@if(FreightChartData != null) 
{ 
<SfChart></SfChart> 
} 


Kindly revert us if you have any concerns. 

Regards, 
Durga G 


Marked as answer

JI Jim replied to Durga Gopalakrishnan February 2, 2023 06:14 PM UTC

I have the same issue, but not loading the chart until data is available does not help.



DG Durga Gopalakrishnan Syncfusion Team February 3, 2023 12:31 PM UTC

Jim,


We are unaware of exact scenario which reproduces an issue from your end. We request you to share the issue reproduced sample or code snippet and video reference to validate your reported scenario further.


Please let us know if you have any other concerns.


Loader.
Up arrow icon