๐:2
For the first question, I think you can write in scales > yAxes > ticks
, the parameter stepSize
and assign it to 1
.
For the second question, try to put in scales > yAxes > ticks
, the parameter stepSize
and min and max to the min or max value of $logs_chart['followers']
.
yAxes: [{
ticks: {
stepSize: 1,
min: <?= intval(min($logs_chart['followers'])) - 0.5 ?>,
max: <?= intval(max($logs_chart['followers'])) + 0.5 ?>
}
}]
Wish it helped you
๐:1
In your scales definition just try adding the following :
ticks: {
min: 0,
beginAtZero: true
}
That will at least ensure that you can see the bottom line.