How to add filter in d3