mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 19:30:06 +02:00
feat: Chart first step
This commit is contained in:
1 parent
bc839a7ab7
commit
d75fff58c7
25 files changed
+291189
-4
No files matched your search
@@ -1,5 +1,3 @@
|
||||
<h3>PlayerInfoStatistics</h3>
|
||||
@inherits PlayerInfoStatisticsBase
|
||||
|
||||
@code {
|
||||
|
||||
}
|
||||
<div id="main" style="width:600px; height:400px;"></div>
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user