I have generated many RadzenChart object successfully where the dataset is rows with a date column (ShipDate) as the horizontal axis and an int column (Quantity) as the vertical axis. However, when the dataset used with the chart has all values of 0 for the Quantity, I get an error. Here is what is shown in the Developer Tools Console.
Unhandled exception rendering component: Function does not accept floating point Not-a-Number values.
System.ArithmeticException: Function does not accept floating point Not-a-Number values.
at System.Math.Sign(Double value)
at Radzen.Blazor.ScaleBase.NiceNumber(Double range, Boolean round)
at Radzen.Blazor.LinearScale.Ticks(Int32 distance)
at Radzen.Blazor.Rendering.AxisMeasurer.YAxis(ScaleBase scale, AxisBase axis, RadzenAxisTitle title)
at Radzen.Blazor.RadzenValueAxis.Measure(RadzenChart chart)
at Radzen.Blazor.RadzenChart.UpdateScales()
at Radzen.Blazor.RadzenChart.Refresh(Boolean force)
at Radzen.Blazor.RadzenChart.Resize(Double width, Double height)
at Radzen.Blazor.RadzenChart.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
There are times when all the Quantity value SHOULD be zero. How can I get around this?
Thanks