Adjust the radius and perpendicular distance to see how chord length changes. The simulator uses the perpendicular-bisector theorem and Pythagoras.
The perpendicular bisects the chord. The radius, distance and half-chord form a right triangle.