You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the API docs, filterFunction "Filters records such that the specified function returns truthy when called with this dimension's value"
However, it uses a bitwise xor (^) as a comparison operator which makes otherwise "truthy" values other than 1/0/true/false cause undesired behavior (e.g. adding items that are already present).
Fix: Force the output of the given function to true or false rather than relying on its truthyness. I think using ? true : false works?
According to the API docs, filterFunction "Filters records such that the specified function returns truthy when called with this dimension's value"
However, it uses a bitwise xor (^) as a comparison operator which makes otherwise "truthy" values other than 1/0/true/false cause undesired behavior (e.g. adding items that are already present).
Fix: Force the output of the given function to true or false rather than relying on its truthyness. I think using
? true : false
works?Reference: http://stackoverflow.com/questions/25083383/custom-text-filter-for-dc-js-datatable/25129514#25129514
The text was updated successfully, but these errors were encountered: