feat: Chart first step

This commit is contained in:
Mikhail Shabanov committed 2021-08-02 15:05:22 +02:00
1 parent bc839a7ab7
commit d75fff58c7
25 files changed
+291189 -4

No files matched your search

@@ -0,0 +1,20 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using WotBlitzStatisticsPro.Blazor.Services;
namespace WotBlitzStatisticsPro.Blazor.Pages
{
public class PlayerInfoStatisticsBase: ComponentBase
{
[Inject]
public IChartsService ChartsService { get; set; }
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
await ChartsService.BuildBarChart("main");
}
}
}
}