client-side data padding

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2025-06-06 03:57:33 +02:00
parent 41f5d42ba9
commit b046181947
6 changed files with 50 additions and 18 deletions

View File

@ -27,14 +27,14 @@ export class AdminModelPerDay extends AKChart<EventVolume[]> {
async apiRequest(): Promise<EventVolume[]> {
return new EventsApi(DEFAULT_CONFIG).eventsEventsVolumeList({
action: this.action,
historyDays: 30,
...this.query,
});
}
getChartData(data: EventVolume[]): ChartData {
return this.eventVolume(
data,
new Map([
return this.eventVolume(data, {
optsMap: new Map([
[
this.action,
{
@ -44,7 +44,8 @@ export class AdminModelPerDay extends AKChart<EventVolume[]> {
},
],
]),
);
padToDays: 30,
});
}
}