-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
draw throws exceptions for line charts #265
Comments
I am getting this precise error as well. Note that there doesn't even need to be a data update. Re-calling To confirm, I did:
and didn't get to the last print out, instead erroring as @stephen-dunn did. |
I have been experiencing this error as well, and it prevents interactive filtering when rendering a dual-axis chart. When the user selects a filter value, from e.g. an element created with d3.select("#somedivid").append("div").append("select"), the first series gets redrawn but the DOMException interrupts the draw method and so the second series remains unchanged. Confirming, though, that switching to d3.v3 and dimple.v2.1.6 solves the issue. |
I'm having this same problem with line charts as well, same error as given above. The best I can pinpoint, based on the error message
looks like where names of classes are being joined by a dot. One of these dots is put at the end of the selector string--maybe some class in the array being joined is just blank text? Not sure the best way to fix it, but that seems to be where the issue lies. |
tldr: THE FIX IS VERY SIMPLE:
|
@guylando I tried your fix and I can confirm that it works. Thanks! |
… for line charts The fix is highlighted in PMSI-AlignAlytics#265 (comment)
Thank you a few years later! |
In the latest version dimple 2.3.0 and d3 4.3.0
draw()
throws an exception when called after receiving a data update.here is an example
If I switch back to dimple 2.1.6 and d3 3.4.8 then it works as expected and does not throw an exception.
Here is the exception from the example above:
The text was updated successfully, but these errors were encountered: