test_3D
by spgoo
HTML
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/distrib/jsxgraphcore.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/distrib/jsxgraph.css" />
</head>
<body>
<h1>salut</h1>
<div id="box1" class="jxgbox" style="margin:0px 0px 0px 2px;width:550px; height:600px;">
</div>
</body>
</html>
JavaScript
var board= JXG.JSXGraph.initBoard("box1", {pan: {enabled:false},boundingbox: [-2.5,6, 10,-1],withLines:true,keepaspectratio: true, axis:false,
defaultAxes: {
x: { ticks: {visible: false},withLabel: true},
y: { ticks: {visible: false},withLabel: true}
},showNavigation:true,showInfobox: true,showCopyright:false});
board.renderer.container.style.backgroundColor='#C5ADC5';