Skip to content

Commit

Permalink
Give an example of filtering a chart by range
Browse files Browse the repository at this point in the history
This may help users who try the regular crossfilter syntax of ```dimension.filter([15,20])``` and see nothing changing in the charts.
  • Loading branch information
koefoed committed Jan 19, 2016
1 parent 48af870 commit 97c1db0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/base-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,9 @@ dc.baseMixin = function (_chart) {
* chart.filter('Sunday');
* // filter by a single age
* chart.filter(18);
* // filter by range -- note the use of dc.filters.RangedFilter
* // which is different from regular crossfilter syntax ( dimension.filter([15,20]) )
* chart.filter(dc.filters.RangedFilter(15,20));
* @param {*} [filter]
* @return {dc.baseMixin}
*/
Expand Down

0 comments on commit 97c1db0

Please sign in to comment.