For some reasone all graphs are cut off at the highest value. How can i fix this? I can\'t use a fixed y-axis
I had my data values stored in array. So I set my max and min values like this:
var _array = [1,3,2];
var suggestedMin = Math.max.apply(Math,_array); // 3
var suggestedMax = Math.min.apply(Math,_array); // 1
And than you can set
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: false,
suggestedMin: suggestedMin - 1,
suggestedMax: suggestedMax + 1,
}
}]
}
}
And it works, thank you.