Graph (2D and 3D) max values for X and Y axis