Use isPointInside function for both graphs and axis
#14222
Merged
isPointInside function for both graphs and axis
#14222