Replies: 3 comments
-
Update added setTimeout:
This resolves the callstack issue, but my charts are frozen. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I just did this today and it works for me. Nothing is frozen. But for events I am using |
Beta Was this translation helpful? Give feedback.
0 replies
-
Try this: const doubeClick: Plugin<"line"> = {
id: "doubleClick",
afterEvent(chart: ChartJS, args: any, _options: AnyObject) {
if (args.event.type === "dblclick" && !args.replay) chart.resetZoom()
}
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:
Beta Was this translation helpful? Give feedback.
All reactions