Set max Miles to 1000 if no miles exist under dashboard

This commit is contained in:
johnny@pittpc.com 2021-01-20 12:57:35 -05:00
parent b76c009d30
commit 9933acee8f
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ var myLineChart = new Chart(ctx, {
yAxes: [{
ticks: {
min: 0,
max: <?php echo roundUpToNearestMultiple($largest_trip_miles_month); ?>,
max: <?php $max = max(1000, $largest_trip_miles_month); echo roundUpToNearestMultiple($max); ?>,
maxTicksLimit: 5
},
gridLines: {