Finally, the moodle plugin for JSXGraph has been updated to run on moodle 2+. It is available at http://jsxgraph.uni-bayreuth.de/wp/download/tools/. To install, you have to unzip the downloaded file in the subdirectory “filter” of your moodle installation and open the admin page of moodle.
Here is a minimal example: Open a page resource in moodle and use the HTML view in the editor to type the following code.
Example 1
<jsxgraph>
(function(){
var brd = JXG.JSXGraph.initBoard('box0', {boundingbox:[-5,5,5,-5], axis:true});
var p = brd.create('point', [1,2]);
})();
</jsxgraph>
Example 2
<jsxgraph width="600" height="400" box="mybox">
(function(){
var brd = JXG.JSXGraph.initBoard('mybox', {boundingbox:[-5,5,5,-5], axis:true});
var p = brd.create('point', [1,2]);
})();
</jsxgraph>