-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Rowchart has Infinite height when _rowData.length is 0 #1008
Comments
Seems like a legitimate bug, reopening (?) |
It might be a legitimate bug. But the errors I was receiving had nothing to do with this, I was way off base. They were caused by a preRedraw function I had which calculated the xAxis domain and didn't check for infinity/NaN. I haven't seen any errors crop up around the height being Infinity, so I think it should be safe to close. Regards, Einar |
I think this is related to a calculation in |
I looked and looked, but couldn't find any way to detect invalid DOM attributes being set in tests? Seems really weird that this can't be tested (via Jasmine). However, I did add a test and verified that it was creating errors before the fix (described in #1024) but not after. If anyone knows how to test this, I'd really appreciate a hint! |
@alisabzevari, that's actually a different error - the opposite error. This one has to do with having no rows, not lots of rows. If you'd care to file a separate issue, I'd appreciate it. Even better with a test case (fiddle or jasmine). |
Fixed in 2.0 beta 32 |
See:
dc.js/src/row-chart.js
Line 169 in 6e95388
when you filter such that a rowchart has no rows, its height becomes Infinity, which translates to a lot of errors along the lines of:
Error: Invalid value for <g> attribute transform="translate(NaN,0)"
The text was updated successfully, but these errors were encountered: