@@ -423,8 +423,8 @@ <h3 id="methods">
423423
424424 < tr >
425425 < td class ="col-md-4 ">
426- < div class ="io-line "> Defined in < a href ="" data-line ="206 "
427- class ="link-to-prism "> src/app/features/home/home.component.ts:206 </ a > </ div >
426+ < div class ="io-line "> Defined in < a href ="" data-line ="213 "
427+ class ="link-to-prism "> src/app/features/home/home.component.ts:213 </ a > </ div >
428428 </ td >
429429 </ tr >
430430
@@ -497,8 +497,8 @@ <h3 id="methods">
497497
498498 < tr >
499499 < td class ="col-md-4 ">
500- < div class ="io-line "> Defined in < a href ="" data-line ="189 "
501- class ="link-to-prism "> src/app/features/home/home.component.ts:189 </ a > </ div >
500+ < div class ="io-line "> Defined in < a href ="" data-line ="196 "
501+ class ="link-to-prism "> src/app/features/home/home.component.ts:196 </ a > </ div >
502502 </ td >
503503 </ tr >
504504
@@ -572,8 +572,8 @@ <h3 id="methods">
572572
573573 < tr >
574574 < td class ="col-md-4 ">
575- < div class ="io-line "> Defined in < a href ="" data-line ="198 "
576- class ="link-to-prism "> src/app/features/home/home.component.ts:198 </ a > </ div >
575+ < div class ="io-line "> Defined in < a href ="" data-line ="205 "
576+ class ="link-to-prism "> src/app/features/home/home.component.ts:205 </ a > </ div >
577577 </ td >
578578 </ tr >
579579
@@ -647,8 +647,8 @@ <h3 id="methods">
647647
648648 < tr >
649649 < td class ="col-md-4 ">
650- < div class ="io-line "> Defined in < a href ="" data-line ="132 "
651- class ="link-to-prism "> src/app/features/home/home.component.ts:132 </ a > </ div >
650+ < div class ="io-line "> Defined in < a href ="" data-line ="139 "
651+ class ="link-to-prism "> src/app/features/home/home.component.ts:139 </ a > </ div >
652652 </ td >
653653 </ tr >
654654
@@ -690,8 +690,8 @@ <h3 id="methods">
690690
691691 < tr >
692692 < td class ="col-md-4 ">
693- < div class ="io-line "> Defined in < a href ="" data-line ="117 "
694- class ="link-to-prism "> src/app/features/home/home.component.ts:117 </ a > </ div >
693+ < div class ="io-line "> Defined in < a href ="" data-line ="124 "
694+ class ="link-to-prism "> src/app/features/home/home.component.ts:124 </ a > </ div >
695695 </ td >
696696 </ tr >
697697
@@ -729,8 +729,8 @@ <h3 id="methods">
729729
730730 < tr >
731731 < td class ="col-md-4 ">
732- < div class ="io-line "> Defined in < a href ="" data-line ="103 "
733- class ="link-to-prism "> src/app/features/home/home.component.ts:103 </ a > </ div >
732+ < div class ="io-line "> Defined in < a href ="" data-line ="110 "
733+ class ="link-to-prism "> src/app/features/home/home.component.ts:110 </ a > </ div >
734734 </ td >
735735 </ tr >
736736
@@ -768,8 +768,8 @@ <h3 id="methods">
768768
769769 < tr >
770770 < td class ="col-md-4 ">
771- < div class ="io-line "> Defined in < a href ="" data-line ="221 "
772- class ="link-to-prism "> src/app/features/home/home.component.ts:221 </ a > </ div >
771+ < div class ="io-line "> Defined in < a href ="" data-line ="228 "
772+ class ="link-to-prism "> src/app/features/home/home.component.ts:228 </ a > </ div >
773773 </ td >
774774 </ tr >
775775
@@ -860,8 +860,8 @@ <h3 id="methods">
860860
861861 < tr >
862862 < td class ="col-md-4 ">
863- < div class ="io-line "> Defined in < a href ="" data-line ="149 "
864- class ="link-to-prism "> src/app/features/home/home.component.ts:149 </ a > </ div >
863+ < div class ="io-line "> Defined in < a href ="" data-line ="156 "
864+ class ="link-to-prism "> src/app/features/home/home.component.ts:156 </ a > </ div >
865865 </ td >
866866 </ tr >
867867
@@ -950,8 +950,8 @@ <h3 id="methods">
950950
951951 < tr >
952952 < td class ="col-md-4 ">
953- < div class ="io-line "> Defined in < a href ="" data-line ="169 "
954- class ="link-to-prism "> src/app/features/home/home.component.ts:169 </ a > </ div >
953+ < div class ="io-line "> Defined in < a href ="" data-line ="176 "
954+ class ="link-to-prism "> src/app/features/home/home.component.ts:176 </ a > </ div >
955955 </ td >
956956 </ tr >
957957
@@ -1033,15 +1033,15 @@ <h3 id="methods">
10331033 </ tr >
10341034 < tr >
10351035 < td class ="col-md-4 ">
1036- < code > setGraphType(type: "1" | "0" )</ code >
1036+ < code > setGraphType(type: < a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number " target =" _blank " > number </ a > )</ code >
10371037 </ td >
10381038 </ tr >
10391039
10401040
10411041 < tr >
10421042 < td class ="col-md-4 ">
1043- < div class ="io-line "> Defined in < a href ="" data-line ="234 "
1044- class ="link-to-prism "> src/app/features/home/home.component.ts:234 </ a > </ div >
1043+ < div class ="io-line "> Defined in < a href ="" data-line ="241 "
1044+ class ="link-to-prism "> src/app/features/home/home.component.ts:241 </ a > </ div >
10451045 </ td >
10461046 </ tr >
10471047
@@ -1069,7 +1069,7 @@ <h3 id="methods">
10691069 < tr >
10701070 < td > type</ td >
10711071 < td >
1072- < code > "1" | "0" </ code >
1072+ < code > < a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number " target =" _blank " > number </ a > </ code >
10731073 </ td >
10741074
10751075 < td >
@@ -1118,8 +1118,8 @@ <h3 id="methods">
11181118
11191119 < tr >
11201120 < td class ="col-md-4 ">
1121- < div class ="io-line "> Defined in < a href ="" data-line ="82 "
1122- class ="link-to-prism "> src/app/features/home/home.component.ts:82 </ a > </ div >
1121+ < div class ="io-line "> Defined in < a href ="" data-line ="88 "
1122+ class ="link-to-prism "> src/app/features/home/home.component.ts:88 </ a > </ div >
11231123 </ td >
11241124 </ tr >
11251125
@@ -1297,7 +1297,7 @@ <h3 id="inputs">
12971297 </ tr >
12981298 < tr >
12991299 < td class ="col-md-4 ">
1300- < i > Type : </ i > < code > "1" | "0" </ code >
1300+ < i > Type : </ i > < code > < a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number " target =" _blank " > number </ a > </ code >
13011301
13021302 </ td >
13031303 </ tr >
@@ -1502,7 +1502,7 @@ <h3 id="inputs">
15021502 * Determines how graph values are represented across all views (day, month, year).
15031503 * `1` → discrete values (non-cumulative) , `0` → Cumulative / progressive values
15041504 */
1505- graphType: 1 | 0 = 1;
1505+ graphType: number = 1;
15061506
15071507 /**
15081508 * The default view type to be loaded on component init.
@@ -1551,6 +1551,12 @@ <h3 id="inputs">
15511551 ) {
15521552 this.has_ai_access = this.userService.getValue<boolean>('has_ai_access') ?? false;
15531553 this.currentDate = new Date(this.configService.getLocalTime());
1554+ this.graphType = this.userService.getValue<number>('graph_type') ?? 1;
1555+ const view = this.userService.getValue<string>('graph_view_type') ?? 'month';
1556+ if(view.length > 0){
1557+ this.setViewType(view as 'month' | 'day' | 'year');
1558+ }
1559+
15541560 }
15551561
15561562 /**
@@ -1573,6 +1579,7 @@ <h3 id="inputs">
15731579 this.viewTypeYearDiv = true;
15741580 }
15751581 }
1582+ this.userService.update('graph_view_type', view);
15761583 }
15771584
15781585 /**
@@ -1709,8 +1716,9 @@ <h3 id="inputs">
17091716 *
17101717 * Changing this value immediately updates the rendered graph data.
17111718 */
1712- setGraphType(type: 1 | 0 ) {
1719+ setGraphType(type: number ) {
17131720 this.graphType = type;
1721+ this.userService.update('graph_type', type);
17141722 }
17151723
17161724}</ code > </ pre >
0 commit comments