Bar charts don't recognize new dimension/group
In my app, I have implemented a keep/remove functionality so that the user can accept (or conversely, reject) the current filters as a new set of data. There is also a restore function that returns the user to the original data set. When any of these are done, I rebuild the crossfilter and all of the dimensions and groups, pass them to the charts (with .dimension(...) and .group(...)) and run dc.filterAll() and dc.renderAll(). At this point, the pie, geochoropleth, and data count charts all refresh properly (reflecting the new data), but the bar charts do not. They continue to show the bars as they were even though the dimension and group seem to reflect the change when queried.
For example, I select a slice of the pie chart and choose to "keep" it. At this point a simply rerun the crossfilter process with the selected data and pass the new dimensions and groups to all of the charts. Then I choose to restore the old data, repeating the same process but this time with a cached version of the original data set. All of the charts except the bar charts handle this process without a hiccup. They instead continue to reflect the state they were in when I selected the pie slice.
As far as I can tell, the internals of the bar chart are fine, meaning that if I brush over them, they act as if they are fine but the bars drawn on the screen aren't accurate to that internal state. They are "stuck" so to speak as they were before the change to the crossfilter.
What happens if you call render() on the chart instance explicitly?
Same thing. It's almost as if the D3 elements are out-of-sync with the data.
Registered as a bug, will try to address it in v1.3 release.
Im facing somewhat the same problem i think. When my page loads it loads the data from the last six months. I added 2 datepicker fields so that my users can choose the range of data. When a user selects a new date i load the data within that range and draw my charts again. This is working but when i want to select a range on my bar chart (similar to the volume chart on nasdaq index example) all the data is updated except my pie charts.
Strange enough it works when i first load my page so the data from the last six months. Except when i choose a new date range and then select a range on the bar chart ==> pie charts dont get updated.
Implemented on master for v1.3 release