Chartjs-In chart.js, how to know if a yAxes tick is bumping/rendering over/into another

0๐Ÿ‘

โœ…

I had to go into the chart.js library logic and add in my own custom modifications. I call my own function to return a boolean flag stating I should skip the current y axis to be drawn or not and I pass it the currentY value to use to draw and the previous y value used when it was drawn

this Chart.js library version is chartjs.2.2.2 and I edited and made these custom modifications within src/core/core.scale.js from the code in the following if statement around like lines 800 give or take a few hundred lines :p

if (optionTicks.display) {
    //...
}

Maybe that will help anyone else, good luck!

cheers

Leave a comment