Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
KeenBase.prototype.draw = function(query, el, attributes){
var chart = Dataviz()
.attributes(attributes)
.el(el)
.prepare();
this.run(query, function(err, res){
if (err) {
chart.message(err.message);
}
else {
chart.data(res).render();
}
});
return chart;
};