if (context.isZooming) {
// When the mouse moves >200px from the chart edge, cancel the zoom.
var d = distanceFromChart(event, g);
if (context.isZooming) {
// When the mouse moves >200px from the chart edge, cancel the zoom.
var d = distanceFromChart(event, g);