mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 04:20:55 +00:00
32 lines
867 B
Plaintext
32 lines
867 B
Plaintext
@page "/"
|
|
@page "/dashboard"
|
|
@inject HttpClient http
|
|
|
|
<RadzenChart>
|
|
<RadzenAreaSeries Smooth="true" Data="recordPrintedPagesItems" CategoryProperty="Date" Title="2023" ValueProperty="Revenue" RenderingOrder="1">
|
|
<RadzenSeriesDataLabels/>
|
|
</RadzenAreaSeries>
|
|
<RadzenCategoryAxis Padding="20" LabelAutoRotation="-45" />
|
|
<RadzenValueAxis>
|
|
<RadzenGridLines Visible="true" />
|
|
<RadzenAxisTitle Text="Revenue in USD" />
|
|
</RadzenValueAxis>
|
|
</RadzenChart>
|
|
|
|
@code {
|
|
|
|
List<Shared.Models.Report.RecordPrintedPagesItem> recordPrintedPagesItems = new();
|
|
|
|
protected async override Task OnInitializedAsync()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
async Task GetrecordPrintedPagesItems()
|
|
{
|
|
var responce = http.GetAsync(Shared.Classes.ApiRoutes.Report.GetRecordPrintAtSeletedDays(5));
|
|
|
|
}
|
|
}
|