Home › forums › Chart Support › canvasjs.min.js:18 – Non-passive event listener
Is there anything we can do to improve this js functionality?
Added non-passive event listener to a scroll-blocking ‘touchstart’ event. Consider marking event handler as ‘passive’ to make the page more responsive. – canvasjs.min.js:18
I have the same issue. Setting interactivityenabled: false; doesn’t solve the issue as I was thought was supposed to.
Can you kindly create JSFiddle reproducing the issue you are facing so that we can look into the code, understand the scenario better and help you resolve the same?
In order to help us in understanding the issue, please have a reproducible demo of your chart. This one step can assure you a speedy response. Fork out our template JSFiddle and reproduce the chart at your end. Try to keep it to the bare minimum by removing unnecessary code.
From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue or not able to understand the exact requirements or the solution that we provide may not work properly due to the variation in chart-options being used by you and us.
Having a JSFiddle helps us in figuring out the issue and many a time we can just edit your code on JSFiddle to fix the issue right away.
This is a standard JS error when just loading any graph.
Here is another.
Kaden is correct.
In Chrome looking at the console on your own example page you will get the same error.
Multi Series Charts
On this page it will be thrown 10 times.
bs-cc-for-pre-unv-inv-dem.min.js?v=1.26:244 [Violation] Added non-passive event listener to a scroll-blocking ‘touchstart’ event. Consider marking event handler as ‘passive’ to make the page more
@trifectait & @mybudfrogs,
Thanks for reporting the warning being thrown in chromium-based browsers. We will look into it in future releases.
You must be logged in to reply to this topic.