n_d = di;
                min_i = i;
            }
        }
        spline_i = min_i;
        spline_context.setLineDash([4, 4]);
        spline_context.beginPath();
        spline_context.moveTo(x_to_client(spline_xs[min_i]), y_to_client(spline_ys[min_i]));
        spline_context.lineTo(client_x, client_y);
        spline_context.strokeStyle="#AA3311";
        spline_context.stroke();
        spline_context.closePath();
        spline_context.setLineDash([]);
    }
}

    </script>
  </head>
  <body>
    