shutterstock/rickshaw — pull request #51 by eshira (2012-05-21 19:15:53+00:00)
Title: Check index boundaries.

approximateIndex could round to outside the domain, so we need to do a Math.min against the length of the data.