问题
I would like to filter my data based on the input in a textbox. Is this possible? Something like this but with crossfilter.
回答1:
Certainly possible with crossfilter
, just create dimension
objects from your raw data and then apply a filter by the input of the text box.
myDimension.filter(valueFromBox); // selects values who equal the value in the text box
Check out the API docs here.
来源:https://stackoverflow.com/questions/15615336/crossfilter-filter-based-on-textbox