diff --git a/client_side_nav.php b/client_side_nav.php index eec76a35..d58d432a 100644 --- a/client_side_nav.php +++ b/client_side_nav.php @@ -136,19 +136,6 @@ - - - + + + diff --git a/dashboard.php b/dashboard.php index b32d057f..97e9dcf6 100644 --- a/dashboard.php +++ b/dashboard.php @@ -491,6 +491,40 @@ var myLineChart = new Chart(ctx, { ?> + ], + }, + label: "Expense", + lineTension: 0.3, + backgroundColor: "rgba(2,2,216,0.2)", + borderColor: "rgba(2,2,216,1)", + pointRadius: 5, + pointBackgroundColor: "rgba(2,117,216,1)", + pointBorderColor: "rgba(255,255,255,0.8)", + pointHoverRadius: 5, + pointHoverBackgroundColor: "rgba(2,117,216,1)", + pointHitRadius: 50, + pointBorderWidth: 2, + data: [ + 0 AND expenses.company_id = $session_company_id"); + $row = mysqli_fetch_array($sql_expenses); + $expenses_for_month = $row['expense_amount_for_month']; + + if($expenses_for_month > 0 AND $expenses_for_month > $largest_expense_month){ + $largest_expense_month = $expenses_for_month; + } + + + ?> + + + + ], }], },