Input string was not in a correct format.

Hello.

By some reason this error happens on mobile, while it is not happening on desktop browser.


console output on mobile :

blazor.server.js:1 [2022-02-18T12:14:12.177Z] Error: System.FormatException: Input string was not in a correct format.

   at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)

   at System.Convert.ToDouble(String value, IFormatProvider provider)

   at Syncfusion.Blazor.Charts.LegendBase.CalculatePagingElements(TextOptions textOption)

   at Syncfusion.Blazor.Charts.LegendBase.CalculateRenderTreeBuilderOptions()

   at Syncfusion.Blazor.Charts.Internal.ChartLegendRenderer.HandleChartSizeChange(Rect rect)

   at Syncfusion.Blazor.Charts.SfChart.UpdateRenderers()

   at Syncfusion.Blazor.Charts.SfChart.OnLayoutChange()

   at Syncfusion.Blazor.Charts.SfChart.OnAfterScriptRendered()

   at Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(Boolean firstRender)

   at Syncfusion.Blazor.SfDataBoundComponent.OnAfterRenderAsync(Boolean firstRender)

   at Syncfusion.Blazor.Charts.SfChart.OnAfterRenderAsync(Boolean firstRender)

   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)


1 Reply

DG Durga Gopalakrishnan Syncfusion Team February 21, 2022 12:57 PM UTC

Hi Yordan, 

Greetings from Syncfusion. 

We have ensured your reported scenario in device. Control is rendering fine without any console exception. We have attached the tested sample and screenshot for your reference.  

 


Since we are unaware of exact scenario which replicates an issue, we request you to share the following information which will be more helpful for further analysis. 
  • Try to reproduce the reported scenario in shared sample.
  • Please share your sample (or) code snippet with full configurations.
  • Share the details if you have done any other customization in your sample.
  • Share your datasource file.
  • Share your package version.
  • Browser used and system configuration.

Please let us know if you have any concerns. 

Regards, 
Durga G 


Loader.
Up arrow icon