Hi,
Using: UI for Blazor 2.0 with .NET Core 3 RC1.
We're trying to get data to show on our chart. However it seems this is not working. We're binding a single series like this:
<TelerikChart>
<ChartSeriesItems>
<ChartSeries Type="ChartSeriesType.Line" Name="Values" Data="@_dataPoints" Field="@nameof(DataPoint.Value)" CategoryField="@nameof(DataPoint.Category)" />
</ChartSeriesItems>
<ChartLegend Position="Telerik.Blazor.ChartLegendPosition.Right" />
</TelerikChart>
Our _dataPoints variable is set in OnInitializedAsync. We've tried invoking StateHasChanged after the variable has been set, but this does not seem to help.
The "category" property on the DataPoint model was a DateTime but we changed this to string to check if that would work, but this also doesn't fix it.
private IEnumerable<DataPoint> _dataPoints = new List<DataPoint>();
protected override async Task OnInitializedAsync()
{
_dataPoints = await CalculateDataPoints().ConfigureAwait(false);
//await InvokeAsync(() => StateHasChanged()).ConfigureAwait(false);
}
Are we missing something?
Thank you in advance.