Skip to content

Commit

Permalink
Try to start y axes of charts at zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinan-96 committed Oct 4, 2024
1 parent 546d661 commit 9fa1ead
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,14 @@ async function generateIncByWeekChart(numberOfDays) {
},
options: {
scales: {
y: {
beginAtZero: true,
},
yAxes: [{
ticks: {
minor: {
beginAtZero: true,
min: 0
}
}
}]
},
},
});
Expand Down Expand Up @@ -266,9 +271,14 @@ async function generateIncByCategoryChart(numberOfDays) {
},
options: {
scales: {
y: {
beginAtZero: true,
},
yAxes: [{
ticks: {
minor: {
beginAtZero: true,
min: 0
}
}
}]
},
},
});
Expand Down

0 comments on commit 9fa1ead

Please sign in to comment.