Skip to content

Commit

Permalink
Using keyAccessor and valueAccessor while checking if a point is filt…
Browse files Browse the repository at this point in the history
…ered
  • Loading branch information
kum-deepak committed May 7, 2018
1 parent a57cb0b commit 976e8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scatter-plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ dc.scatterPlot = function (parent, chartGroup) {
symbols.call(renderTitles, _chart.data());

symbols.each(function (d, i) {
_filtered[i] = !_chart.filter() || _chart.filter().isFiltered([d.key[0], d.key[1]]);
_filtered[i] = !_chart.filter() || _chart.filter().isFiltered([_chart.keyAccessor()(d), _chart.valueAccessor()(d)]);
});

dc.transition(symbols, _chart.transitionDuration(), _chart.transitionDelay())
Expand Down

0 comments on commit 976e8f6

Please sign in to comment.