소스 검색

✨ display graph right from the beginning

jmacura 3 년 전
부모
커밋
7a50a5cd41
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/app/graphs/year-graph/year-graph.component.ts

+ 2 - 0
src/app/graphs/year-graph/year-graph.component.ts

@@ -30,6 +30,8 @@ export class YearGraphComponent {
         ),
       ];
       console.log(this.regions);
+      this.selectedYear = this.firstYear;
+      this.redrawGraphs();
     });
   }