When the user hovers right on the chart the caption flies off the screen.
Solution A:
lock the caption to a specific area
Solution B:
Send in a second mouse index in the mouse event loop that sends in the offset of the caption as well. If width of caption > chart bounds send in max offset of caption. This allows the caption to follow the eyes of the user but keeps the caption from going out of bounds on the right.
Solution C:
This chart stuff is nonesense and silly - throw it out.
When the user hovers right on the chart the caption flies off the screen.
Solution A: lock the caption to a specific area
Solution B: Send in a second mouse index in the mouse event loop that sends in the offset of the caption as well. If width of caption > chart bounds send in max offset of caption. This allows the caption to follow the eyes of the user but keeps the caption from going out of bounds on the right.
Solution C: This chart stuff is nonesense and silly - throw it out.