diff --git a/dashboard.php b/dashboard.php index 06cd1322..d36397d2 100644 --- a/dashboard.php +++ b/dashboard.php @@ -543,82 +543,6 @@ var myLineChart = new Chart(ctx, { Chart.defaults.global.defaultFontFamily = '-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif'; Chart.defaults.global.defaultFontColor = '#292b2c'; -// Area Chart Example -var ctx = document.getElementById("expenseFlow"); -var myLineChart = new Chart(ctx, { - type: 'line', - data: { - labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], - datasets: [{ - 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; - } - - - ?> - - - - - ], - }], - }, - options: { - scales: { - xAxes: [{ - time: { - unit: 'date' - }, - gridLines: { - display: false - }, - ticks: { - maxTicksLimit: 12 - } - }], - yAxes: [{ - ticks: { - min: 0, - max: , - maxTicksLimit: 5 - }, - gridLines: { - color: "rgba(0, 0, 0, .125)", - } - }], - }, - legend: { - display: false - } - } -}); - -// Set new default font family and font color to mimic Bootstrap's default styling -Chart.defaults.global.defaultFontFamily = '-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif'; -Chart.defaults.global.defaultFontColor = '#292b2c'; - // Area Chart Example var ctx = document.getElementById("tripFlow"); var myLineChart = new Chart(ctx, {