here i have attached the image of my bar chart. here last two values y axis is over lapping how i need to solve this problem.
yAxes: [
{
maxBarThickness: barThickness,
gridLines: {
drawOnChartArea: false,
color: gridLineColor,
},
ticks: {
max: progressionBarMax,
min: progressionBarMin,
//callback: this.getLastValue,
},
},
]
getLastValue(value, index, values) {
console.log(value);
console.log(values);
console.log(index);
if (index === 0) {
const step = values[values.length-2] - values[values.length-1]
return values[1] + step;
}
return value;
}
here i have attached the image of my bar chart. here last two values y axis is over lapping how i need to solve this problem.
my code: