ContributorsMasterGraph.prototype.update_content = function() { // d3Event.selection replaces the function brush.empty() calls if (d3Event.selection != null) { ContributorsGraph.set_x_domain(d3Event.selection.map(this.x.invert)); } else { ContributorsGraph.set_x_domain(this.x_max_domain); } return $('#brush_change').trigger('change'); };
.on('end', function() { if (!d3Event.sourceEvent) return; const selection = d3Event.selection ? d3Event.selection.map(state.scale.invert) : state.scale.domain(); state.onChange(...selection); });