You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chart.resetZoom on dblclick event results in maximum callstack exceeded #769
I'm currently listening for double clicks on the chart with events: ["dblclick"] in my options. Using the following Plugin, I'm getting a Maximum callstack exceeded error.
Logging the event works fine. I also noticed that my tooltips stopped working for some odd reason...?
Here's the error:
Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
at resolveKeysFromAllScopes (webpack-internal:///./node_modules/chart.js/dist/chunks/helpers.segment.cjs:1819:34)
at getKeysFromAllScopes (webpack-internal:///./node_modules/chart.js/dist/chunks/helpers.segment.cjs:1815:31)
at Object.ownKeys (webpack-internal:///./node_modules/chart.js/dist/chunks/helpers.segment.cjs:1616:20)
at Reflect.ownKeys (<anonymous>)
at Object.ownKeys (webpack-internal:///./node_modules/chart.js/dist/chunks/helpers.segment.cjs:1659:28)
at Function.keys (<anonymous>)
at Object.each (webpack-internal:///./node_modules/chart.js/dist/chunks/helpers.segment.cjs:98:23)
at Chart.ensureScalesHaveIDs (webpack-internal:///./node_modules/chart.js/dist/chart.cjs:5702:25)
at Chart._updateScales (webpack-internal:///./node_modules/chart.js/dist/chart.cjs:5879:14)
at Chart.update (webpack-internal:///./node_modules/chart.js/dist/chart.cjs:5836:14)
I just did this today and it works for me. Nothing is frozen. But for events I am using events: ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove', 'dblclick' ],
Activity
mattgatee commentedon Jun 18, 2023
Update
added setTimeout:
This resolves the callstack issue, but my charts are frozen.
mikij commentedon Apr 24, 2024
I just did this today and it works for me. Nothing is frozen. But for events I am using
events: ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove', 'dblclick' ],kurkle commentedon Nov 17, 2024
Try this: