[PR #1989] RadzenChart: Fix negative step #3016

Closed
opened 2026-01-29 18:21:31 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/radzenhq/radzen-blazor/pull/1989

State: closed
Merged: Yes


When a value series only has negative values, this happens:

Exception: System.ArgumentOutOfRangeException: Arg_ArgumentOutOfRangeException Arg_ParamName_Name, Step must be greater than zero
          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.CartesianSeries`1.<SetParametersAsync>d__74[[...]].MoveNext()

My change should fix that.

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/1989 **State:** closed **Merged:** Yes --- When a value series only has negative values, this happens: ``` Exception: System.ArgumentOutOfRangeException: Arg_ArgumentOutOfRangeException Arg_ParamName_Name, Step must be greater than zero 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.CartesianSeries`1.<SetParametersAsync>d__74[[...]].MoveNext() ``` My change should fix that.
claunia added the pull-request label 2026-01-29 18:21:31 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#3016