Currently, it still puts the filtered dataset on top of the totals dataset; it just happens to have the same value, so it's hard to notice.
At the moment, there's a bug in Chart.js (chartjs/Chart.js#3791) preventing us from doing this. But once it's resolved, we can simply check for the presence of filters inside Carto.js's componentWillReceiveProps method.
Currently, it still puts the filtered dataset on top of the totals dataset; it just happens to have the same value, so it's hard to notice.
At the moment, there's a bug in Chart.js (chartjs/Chart.js#3791) preventing us from doing this. But once it's resolved, we can simply check for the presence of filters inside
Carto.js
'scomponentWillReceiveProps
method.