-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Click event reports an error #2102
Comments
Sure thing! Here's an example: http://jsbin.com/qayajuzeza/1/edit?html,output I'm using Chrome. I hit F12 to bring up the Dev Tools. Click anywhere on the graph and you'll see the error appear in the Dev Tools console. |
I'm wondering if this is due to no data being present. If I have a Graph2d that has some data points, I don't get the error when I click on the graph. |
I can confirm this! http://jsbin.com/nizehoj/1/edit?html,output |
The problem is that
This means that the
This is because |
I created an event that fires when the user clicks on the graph2d object.
Example:
When it fires in the browser, I see the following error traceback:
Digging into the code, this corresponds to:
I just started using vis.js today, so I'm not sure what is intended here.
UPDATE:
Just discovered this happens regardless of whether I have an event defined or not. I deleted the event, reloaded (CTRL+F5) the view, and clicked on the graph2d. Same problem.
The text was updated successfully, but these errors were encountered: