Repository navigation
Replies: 3 comments 1 reply
|
Update added setTimeout: This resolves the callstack issue, but my charts are frozen. |
0 replies
|
I just did this today and it works for me. Nothing is frozen. But for events I am using |
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()
}
}; |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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:
All reactions