JSXGraph test

Template for JSXGraph

HTML

<script src="https://cdn.jsdelivr.net/npm/jsxgraph@1.1.0/distrib/jsxgraphcore.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jsxgraph@1.1.0/distrib/jsxgraph.css">
<div id="jxgbox" class="jxgbox" style="width:500px; height:500px">
</div>

JavaScript

const board = JXG.JSXGraph.initBoard('jxgbox', { 
    boundingbox: [-5, 20, 5, -5], axis:true,
    defaultAxes: {
    	x : {
        name: 'X',
      	withLabel: true,
        label: {
        	position: 'rt',
          offset: [-10, -15]
        }
      },
    	y : {
      	withLabel:true,
        name: 'Y',
        label: {
        	position: 'rt',
          offset: [-20, -10]
        }
      }
    }
});