Bug: Blazor Chart bar is not scaling properly when there's 1 data set

Steps to reproduce:

Get the bar example, and remove most of the data

<h1>Radzen Blazor Chart bar series</h1>
<div class="row">
    <div class="col-md-6 col-sm-12 p-4">
        <RadzenChart>
            <RadzenBarSeries Data="@revenue2020" CategoryProperty="Quarter" Title="2020" LineType="LineType.Dashed" ValueProperty="Revenue" />
            <RadzenValueAxis>
                <RadzenGridLines Visible="true" />
                <RadzenAxisTitle Text="Revenue in USD" />
            </RadzenValueAxis>
            <RadzenBarOptions Radius="5" />
        </RadzenChart>
    </div>
</div>
@code {
    class DataItem
    {
        public string Quarter { get; set; }
        public double Revenue { get; set; }
    }

    DataItem[] revenue2020 = new DataItem[] {
    new DataItem
    {
    Quarter = "Q1",
    Revenue = 10000
    },

    };
}

Result: it only renders with max 2:

image

Also, go to the inspector and check the bar:

https://i.imgur.com/Qs8uBJh.png

it's rendering 8000+ pixels outside of the screen

Manually changing the chart like this as an attempt to force it into a normal scale does not fix it either:

<RadzenValueAxis Max="2000">

I know this might be a strange way to use it with only 1 dataset, but the same bug occurs when you have multiple datasets, and then you disable them 1 by 1 until there is one left. It'll scale into just 1 .. 2

Hi @RonSijm,

Thank you for reporting this issue! We will investigate and provide a fix with the next Radzen.Blazor release.

As a temporary workaround you can try setting Min, Max and Step:

 <RadzenValueAxis Min="1000" Max="20000" Step="4000">

Hey, thanks for the quick response. The temporary workaround doesn't seems to work either. The Axis is still just 0 .. 1 .. 2

This turned out to be a different problem. Both issues should be addressed by the latest Radzen.Blazor version.