In this display click the mouse button once in each of two locations on the screen to place the vectors. The angle between them and the dot product will be automatically displayed. The gray lines represent the component of the shorter vector in the direction of the longer. I have set up the x and y limits so that the angles are displayed correctly on a screen with an aspect ratio of 4/3.