mirror of https://github.com/itflow-org/itflow
Set max Miles to 1000 if no miles exist under dashboard
This commit is contained in:
parent
b76c009d30
commit
9933acee8f
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue