Home forums Using CanvasJS canvasjs.min.js:18 – Non-passive event listener

This topic contains 6 replies, has 3 voices, and was last updated by  Shashi Ranjan 4 weeks, 1 day ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #26257

    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

    #26810

    I have the same issue. Setting interactivityenabled: false; doesn’t solve the issue as I was thought was supposed to.

    #26840

    @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

    #26851

    Hi Shashi,

    This is a standard JS error when just loading any graph.

    http://prnt.sc/p8mihm

    #26854

    Here is another.

    http://prnt.sc/p8ml1a

    #26858

    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

    #26875

    @trifectait & @mybudfrogs,

    Thanks for reporting the warning being thrown in chromium-based browsers. We will look into it in future releases.


    Shashi Ranjan
    Team CanvasJS

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.