mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Set max Miles to 1000 if no miles exist under dashboard
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user