0

I have two charts created through dc.js and I've been trying to add a filter like that :

chart['hour'].filter([0, 16]);
dc.redrawAll();

Unfortunately, the other chart is not properly updated, as if the subset of data was empty.

Charts, once filtered

You'll find a fiddle with the issue there: http://jsfiddle.net/lolcat/ep8wjkee/

Any hint would be greatly appreciated !

0livier
  • 478
  • 4
  • 7
  • It depends on the type of filter, but this one is particularly tricky because it depends on the type of scale. Flagging as duplicate; just comment if it doesn't work for you! – Gordon Jul 27 '15 at 11:43
  • Using dc.filters.RangedFilter did the trick. Thanks Gordon ! – 0livier Jul 27 '15 at 11:51

0 Answers0