arrowheads
set the arrow property of lines with jessiecode
by migerh
HTML
<script src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<link rel="stylesheet" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css">
<div id="jxgbox" class="jxgbox" style="width: 500px; height: 500px"></div>
JavaScript
var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-5, 5, 5, -5], axis: false});
var line = board.create('segment', [[-2, 2], [2, -2]], {id: 'line'});
board.jc.parse("$('line').firstArrow = true;");