将translate后的坐标值转换成数据索引
int transformXToIndex(double translateX) => bisectionTransformXToIndex(translateX, 0, getValues().length - 1);