superset apply new data to chart

Multi tool use


superset apply new data to chart
I want to filtering my data by some criteria and apply it to my chart.
Here is part of code
nv.dispatch.on('render_end', function() {
data = data.filter(function (el) {
var noData = true;
for (var i = 0; i < el.values.length; i++) {
if (el.values[i].y != 0) {
noData = false;
break;
}
}
return !noData;
});
//here I need to apply this changed data to chart
});
Has anyone know solution for this case?
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.