diff --git a/Core/Core/ClientApp/src/app/home/home.component.ts b/Core/Core/ClientApp/src/app/home/home.component.ts index bef1810100efa123262077a2b140e1d10fec4bea..e8f083a2915e55803e20c4fee8b686713889cdd9 100644 --- a/Core/Core/ClientApp/src/app/home/home.component.ts +++ b/Core/Core/ClientApp/src/app/home/home.component.ts @@ -39,6 +39,8 @@ export class HomeComponent implements OnInit { this.HistoryPieChart = this.HomeService.GetHistoryPie(); this.HistoryBarChart = this.HomeService.GetHistoryBar(); this.ForecastPieChart = this.HomeService.GetForecastPie(); + + this.HomeService.ReloadData(); //after re-loggin fire up graphs } onLogout() { diff --git a/Core/Core/ClientApp/src/app/home/home.service.ts b/Core/Core/ClientApp/src/app/home/home.service.ts index 8df89a1f66db5ddfa65491d0a6984bc7a01998c6..ada340b3752f8f23d3828a3275c85c826340f0e0 100644 --- a/Core/Core/ClientApp/src/app/home/home.service.ts +++ b/Core/Core/ClientApp/src/app/home/home.service.ts @@ -59,11 +59,16 @@ export class HomeService { this.HistoryBarChart.addSeries({ name: 'Výdaje', data: this.Expenses } as Highcharts.SeriesColumnOptions, true, false); this.HistoryPieChart.removeSeries(0); this.HistoryPieChart.addSeries({ name: 'Výdaje', data: this.TrasactionTypes } as Highcharts.SeriesColumnOptions, true, false); + + this.HistoryPieChart.ref.reflow(); + this.HistoryBarChart.ref.reflow(); } private ReloadForecastChartSeries() { this.ForecastPieChart.removeSeries(0); this.ForecastPieChart.addSeries({ name: 'Výdaje', data: this.ForecastTypes } as Highcharts.SeriesColumnOptions, true, false); + + this.ForecastPieChart.ref.reflow(); }