diff --git a/dashboard.php b/dashboard.php index ce1c00d4..cecab93b 100644 --- a/dashboard.php +++ b/dashboard.php @@ -435,7 +435,6 @@ var myLineChart = new Chart(ctx, { labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], datasets: [{ label: "Income", - fill: false, borderColor: "#007bff", pointBackgroundColor: "#007bff", @@ -472,7 +471,41 @@ var myLineChart = new Chart(ctx, { ?> ], - }, { + }, + { + label: "Projected", + fill: false, + borderColor: "black", + pointBackgroundColor: "black", + pointBorderColor: "black", + pointHoverRadius: 5, + pointHoverBackgroundColor: "black", + pointHitRadius: 50, + pointBorderWidth: 2, + data: [ + 0 AND $invoice_for_month > $largest_invoice_month){ + $largest_invoice_month = $invoice_for_month; + } + + + ?> + + + + + ], + }, + { label: "Expense", lineTension: 0.3, fill: false,