= 1; i < chebyshev_n; ++i){
            var di = Math.abs(chebyshev_xs[i] - chebyshev_client_to_x(client_x));
            if(di < min_d){
                min_d = di;
                min_i = i;
            }
        }
        chebyshev_i = min_i;
        chebyshev_context.setLineDash([4, 4]);
        chebyshev_context.beginPath();
        chebyshev_context.moveTo(chebyshev_x_to_client(chebyshev_xs[min_i]), chebyshev_y_to_client(chebyshev_ys[min_i]));
        chebyshev_context.lineTo(chebyshev_x_to_client(che