Mise à jour graphique

This commit is contained in:
Rampeur
2025-09-23 22:25:08 +02:00
parent 65ae9fce4b
commit 8b098f7545
31 changed files with 753 additions and 1044 deletions
+1
View File
@@ -13,6 +13,7 @@ export * from './category.model';
export * from './chart.model';
export * from './dropzone.model';
export * from './errors.model';
export * from './hw.model';
export * from './jump.model';
export * from './jump-list.model';
export * from './jump-list-config.model';
@@ -67,6 +67,15 @@ export class UtilitiesService {
getCurrentDateFr(): string {
return new Date().toLocaleDateString('fr');
}
secondsToDuration(seconds: number, delimiter: string = ':'): string {
return [
Math.floor(seconds / 60 / 60),
Math.floor(seconds / 60 % 60),
Math.floor(seconds % 60)
].join(delimiter)
.replace(/\b(\d)\b/g, "0$1")//.replace(/^00\:/, '')
}
getSeriesColors(opacity: number, palette: string = 'all', offset: number = 0): string[] {
let colors: string[] = [];