Closed CoolDaddyCool closed 3 weeks ago
Hi, have you checked samples? https://apexcharts.github.io/Blazor-ApexCharts/features/chart-data
With a hint from @joadan, here’s my solution for anyone encountering a similar issue:
@if (Data != null && Data.Any())
{
<ApexChart TItem="MachineDataDTO">
<ApexPointSeries
TItem="MachineDataDTO"
Items="Data"
Name="MovesPerSec"
SeriesType="SeriesType.Bar"
XValue="@(x => x.Name)"
YAggregate="@(y => y.Sum(y => y.ChainMovesPerSecond))"
OrderByDescending="e=>e.Y" />
</ApexChart>
}
else
{
<h4>...loading....</h4>
}
thanks @joadan
Hello there I'm new to Blazor-ApexCharts and I'm not able to display data from the HttpClient service. I'm using Blazor WebAssembly stand alone in .NET8. My code:
After reaching the graph page chart witout any data is diplayed . I know that my service (Task<IEnumerable> GetMachineDataAsync()) works because returns @Data.Count() correctly. Maybe I missed something maybe I approached it incorrectly. My appologies for placing my request in issue section, but I stacked with this already for 2 days and I ran out of ideas.