-
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
Heatmaps seem to be empty after crossfilter reloads data #1032
Conversation
`selectAll` does not inherit data from its parent. This means that if the underlying crossfilter gets new data the selection of `g.box-group` will see the new data, the children `title` and `rect` will not. The optical result of that is a seemingly emtpy heatmap although the data has changed.
Thanks @smee! Good catch. |
Thanks @mtraynham - this is confusing because in most of the code you refer to, the data is used right on the next line. And it doesn't seem to be nested data. I think we would know if all these locations were failing. So are there some cases where selectAll will in fact replicate the data to the child? |
Well I deemed these cases as bad, because it was using a I believe some of these may be masked by the fact that we transition the same nodes twice: |
Nice! Hmm. Just when I thought I understood selections. I agree they should be |
See #1237 (comment) for the reason this doesn't break the whole world. (Hint: most people use crossfilter, but dc.js doesn't require you to.) |
Yesterday Mike posted a detailed rationale for why |
adding test and merging for 2.0. thanks @smee! |
still need to check against the very helpful @mtraynham list above |
selectAll
does not inherit data from its parent. This means that if the underlying crossfilter gets new data the selection ofg.box-group
will see the new data, the childrentitle
andrect
will not. The optical result of that is a seemingly empty heatmap although the data has changed.