[Bug] Chart exception when values are equal and < 1

Hello,

RadzenChart (tested with LineSeires and PieSeries) throws an exception if all the values are equal and under 1:

Error: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'Step must be greater than zero')
at Radzen.Blazor.LinearScale.ValidateStep(Object step)
at Radzen.Blazor.ScaleBase.set_Step(Object value)
at Radzen.Blazor.LinearScale.Ticks(Int32 distance)
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)

Currently we've worked around it by manually specifying the Min, Max and Step values on the RadzeValueAxis for this case. I assume it's something related to the functions that calculate those parameters when they are all equal and less than 1.

The issue should be easy to reproduce but I can provide an example if needed.

Radzen version: happens on both 2.5.8 and 2.5.9
Using Blazor Server Side.

Hi @GIDC,

Can you show how the series data looks like? Just paste a few numbers.

This is basically a simple reproduction that throws the exception:

@page "/"
@using Data;

<RadzenChart>
    <RadzenPieSeries Data="@PieChartData" Title="Total" CategoryProperty="Label" ValueProperty="Value" />
</RadzenChart>

<RadzenChart>
    <RadzenLineSeries Smooth="true" Data="@LineChartData" Title="Total" CategoryProperty="Label" ValueProperty="Value">
        <RadzenMarkers MarkerType="MarkerType.Circle" />
    </RadzenLineSeries>
    <RadzenCategoryAxis Padding="1" FormatString="{0:d}" />
    <RadzenValueAxis>
        <RadzenGridLines Visible="true" />
        <RadzenAxisTitle Text="Expenses" />
    </RadzenValueAxis>
</RadzenChart>


@code {
    private IList<PieChartData> PieChartData { get; set; } = new List<PieChartData>();
    private IList<LineChartData> LineChartData { get; set; } = new List<LineChartData>();

    protected override Task OnInitializedAsync()
    {

        PieChartData.Add(new Data.PieChartData
        {
            Label = "First",
            Value = 0.03m
            });
        PieChartData.Add(new Data.PieChartData
        {
            Label = "Second",
            Value = 0.03m
        });

        LineChartData.Add(new Data.LineChartData
        {
            Label = "First",
            Value = 0.03m
        });
        LineChartData.Add(new Data.LineChartData
        {
            Label = "Second",
            Value = 0.03m
        });



        return Task.CompletedTask;
    }
}

Thanks! Will be fixed with the next update of Radzen.Blazor.