When we first introduced the X and Y AxisTable statements, we overlooked the need to display the class values side-by-side…