MediaWiki example (dup)

From JSXGraph Wiki
Revision as of 10:13, 8 June 2011 by Michael (talk | contribs)
Jump to navigationJump to search

The MediaWiki Plugin introduces a new tag jsxgraph. It has three attributes:

Attribute Effect
box Defines the id of the div the construction is drawn on. The default value is jxgbox
width The container's width
height The container's height

The underlying code

<jsxgraph box="jxgbox" width="500" height="500">
  var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-2,2,2,-2]});
  var p = brd.create('point',[1.5,1.5],{face:'o', size:8});
  var q = brd.create('point',[-1,-0.5],{face:'x', size:5});