You must be logged in to post your query.
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.
@mybudfrogs,
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.
— Shashi Ranjan Team CanvasJS
Hi Shashi,
This is a standard JS error when just loading any graph.
http://prnt.sc/p8mihm
Here is another.
http://prnt.sc/p8ml1a
Kaden is correct.
In Chrome looking at the console on your own example page you will get the same error.
https://canvasjs.com/docs/charts/basics-of-creating-html5-chart/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
[Update] @trifectait & @mybudfrogs,
Thanks for reporting the warning being thrown in chromium-based browsers. We have released Chart v3.1 Beta 1 with this bug fix, please check out release blog for more information. Kindly download the latest version from our download page and let us know your feedback.
You must be logged in to reply to this topic. Login/Register