Highlight from Text: Difference between revisions
From JSXGraph Wiki
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
<div id="jxgbox" class="jxgbox" style="width:500px; height:200px; position:relative;"></div> | <div id="jxgbox" class="jxgbox" style="width:500px; height:200px; position:relative;"></div> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
var brd = JXG.JSXGraph.initBoard('jxgbox', { | var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-4, 2, 6, -2]}); | ||
var p1 = brd.createElement('point',[-1,1], {name:'A',style:6}); | var p1 = brd.createElement('point',[-1,1], {name:'A',style:6}); | ||
var p2 = brd.createElement('point',[2,-1], {name:'B',style:6}); | var p2 = brd.createElement('point',[2,-1], {name:'B',style:6}); |