mirror of
https://github.com/itflow-org/itflow
synced 2026-03-05 13:24:51 +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: [{
|
yAxes: [{
|
||||||
ticks: {
|
ticks: {
|
||||||
min: 0,
|
min: 0,
|
||||||
max: <?php echo roundUpToNearestMultiple($largest_trip_miles_month); ?>,
|
max: <?php $max = max(1000, $largest_trip_miles_month); echo roundUpToNearestMultiple($max); ?>,
|
||||||
maxTicksLimit: 5
|
maxTicksLimit: 5
|
||||||
},
|
},
|
||||||
gridLines: {
|
gridLines: {
|
||||||
|
|||||||
Reference in New Issue
Block a user