score:3

Accepted answer

Simply retrieve inverted values of the beginning and ending points of your scale, which apparently are 0 and width of the scale:

var startDate = x.invert(0);
var endDate = x.invert(width); // where width is the visible width of the x scale

Related Query

More Query from same tag