What would be the best approach to creating the graph just like the one below using JSXGraph? For example, how would I make axis go beyond the grid, etc.?
Have looked at the official documentation and external guides. Could not find information on how to adjust the ticks, grid, and axis so that I can generate the included graph.

Indeed, axis configuration is sort of complicated in JSXGraph. First, I would not recommend to use the deprecated grid, since it does not have tick labels. For configuration of default axes, JSXGraph has the attribute
defaultAxes.The horizontal axis can be accessed by the sub-attribute
x, the vertical axis byy.Now, we do the following to imitate the above image:
insertTicks: falseminorTicks: 1minorTicks: 0ticksDistance: 2zoom: {min: 0.5, max: 2}label: {fontSize: 16, display: 'html', cssClass: 'tickLabels'}Here is the complete example:
See it live at https://jsfiddle.net/b684vfaL/2/.