mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Remove Expense Flow Fix max value
This commit is contained in:
@@ -215,25 +215,6 @@ $total_recurring_invoice_amount = $row['total_recurring_invoice_amount'];
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="card mb-3">
|
|
||||||
<div class="card-header">
|
|
||||||
<h3 class="card-title"><i class="fas fa-fw fa-chart-area"></i> Expense Flow</h3>
|
|
||||||
<div class="card-tools">
|
|
||||||
<a href="report_expense_summary.php" class="btn btn-tool">
|
|
||||||
<i class="fas fa-eye"></i>
|
|
||||||
</a>
|
|
||||||
<button type="button" class="btn btn-tool" data-card-widget="remove">
|
|
||||||
<i class="fas fa-times"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="card-body">
|
|
||||||
<canvas id="expenseFlow" width="100%" height="20"></canvas>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="card mb-3">
|
<div class="card mb-3">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
@@ -495,13 +476,13 @@ var myLineChart = new Chart(ctx, {
|
|||||||
}, {
|
}, {
|
||||||
label: "Expense",
|
label: "Expense",
|
||||||
lineTension: 0.3,
|
lineTension: 0.3,
|
||||||
backgroundColor: "red",
|
backgroundColor: "rgba(2,2,216,0.2)",
|
||||||
borderColor: "darkred",
|
borderColor: "rgba(2,2,216,1)",
|
||||||
pointRadius: 5,
|
pointRadius: 5,
|
||||||
pointBackgroundColor: "red",
|
pointBackgroundColor: "rgba(2,117,216,1)",
|
||||||
pointBorderColor: "red",
|
pointBorderColor: "rgba(255,255,255,0.8)",
|
||||||
pointHoverRadius: 5,
|
pointHoverRadius: 5,
|
||||||
pointHoverBackgroundColor: "darkred",
|
pointHoverBackgroundColor: "rgba(2,117,216,1)",
|
||||||
pointHitRadius: 50,
|
pointHitRadius: 50,
|
||||||
pointBorderWidth: 2,
|
pointBorderWidth: 2,
|
||||||
data: [
|
data: [
|
||||||
@@ -544,7 +525,7 @@ var myLineChart = new Chart(ctx, {
|
|||||||
yAxes: [{
|
yAxes: [{
|
||||||
ticks: {
|
ticks: {
|
||||||
min: 0,
|
min: 0,
|
||||||
max: <?php echo roundUpToNearestMultiple($largest_income_month); ?>,
|
max: <?php $max = max($largest_expense_month, $largest_income_month); echo roundUpToNearestMultiple($max); ?>,
|
||||||
maxTicksLimit: 5
|
maxTicksLimit: 5
|
||||||
},
|
},
|
||||||
gridLines: {
|
gridLines: {
|
||||||
|
|||||||
Reference in New Issue
Block a user