I am currently working with Chart.js to generate bar graphs in a project. I've set it up to return data to the chart through an ASP.NET webmethod, and I've set it up to use static labels.
I've done this by iterating through the datasets and data after the onComplete callback, then using the fillText command to write onto the canvas.
Now, I'm having the issue where labels sometimes overlap or overlap with the contents of the chart.
What I want to do is check if the canvas already has something on it at a given point / region. Is this possible? If so, how can it be done?
I'm an experienced programmer but am very new to JavaScript. I searched for a few hours trying to find a suitable solution but could not find anything that worked correctly.
I can provide sample code and images if needed, but I do not think it is required given the scope of the question.
Current project resources: JavaScript, JQuery, Chart.js, bootstrap, ASP.NET webmethods
Thank you