Use the MediaWiki extension for JSXGraph: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 1: Line 1:
An extension to include JSXgraph in MediaWiki is under development.
An extension to include JSXgraph in MediaWiki is under development.


<jsxgraph height="500" width="600" filename="Wuerfel_drehbar_dreieck.gxt" />
<!--<jsxgraph height="500" width="600" filename="Wuerfel_drehbar_dreieck.gxt" />-->
<jsxgraph height="500" width="600" />
board = JXG.JSXGraph.initBoard('jxgbox', {originX: 250, originY: 250, unitX: 25, unitY: 25});
var a = board.createElement('slider', [[1,-1],[5,-1],[0,1,4]]);
var b = board.createElement('slider', [[1,-2],[5,-2],[0,0.25,4]]);
var c = board.createElement('curve', [function(phi){return a.Value()+b.Value()*phi; }, [0, 0],'phi',0, 8*Math.PI],
            {curveType:'polar', strokewidth:4});     
</jsxgraph>


To display the above example, a GEONExT file has to be uploaded and the following
To display the above example, a GEONExT file has to be uploaded and the following

Revision as of 11:50, 19 February 2009

An extension to include JSXgraph in MediaWiki is under development.

Error in MediaWiki extension (JSXGraph.php): Missing parameter (width or height, filename, string or input).

board = JXG.JSXGraph.initBoard('jxgbox', {originX: 250, originY: 250, unitX: 25, unitY: 25});
var a = board.createElement('slider', [[1,-1],[5,-1],[0,1,4]]);
var b = board.createElement('slider', [[1,-2],[5,-2],[0,0.25,4]]);
var c = board.createElement('curve', [function(phi){return a.Value()+b.Value()*phi; }, [0, 0],'phi',0, 8*Math.PI],
            {curveType:'polar', strokewidth:4});      

</jsxgraph>

To display the above example, a GEONExT file has to be uploaded and the following code has to be included in a MediWiki page:

<jsxgraph height="500" width="600" filename="Wuerfel_drehbar_dreieck.gxt" />