public IActionResult Index() { ViewBag.DataPoints_PaymentType = JsonConvert.SerializeObject(_chartService.GetDataForChart("TransactionsByPaPaymentType")); ViewBag.DataPoints_TransactionCategory = JsonConvert.SerializeObject(_chartService.GetDataForChart("TransactionsByTransactionCategory")); ViewBag.DataPoints_Budget = JsonConvert.SerializeObject(_chartService.GetDataForChart("UpdateBudgetAfterTransaction")); ViewBag.DataPoints_BudgetMoneyLeft = _chartService.GetDataForChart("ActualBudgetMoneyLeft").ToList().FirstOrDefault().Y.ToString().Replace(",", "."); return(View()); }