add a thing to compute area under the curve within the brushed region