I have create one bar chart with negative values using chart.js. Now i dont want to show 0 (zero) value on Y axis.
I google lot of thing but there is no luck for me.
i tried below properties as well.
ticks: {
beginAtZero: false
}
scaleStartValue: -20, scaleStepWidth: 20, scaleSteps: 3, scaleBeginAtZero: false,
but i didnt get success.
check below image, I have mention what is my expected result.
This can be achieved using the following y-axis ticks callback function :
or - " change 0 value to 100% " :
DEMO