Difference between revisions of "Plot data with slider"

From JSXGraph Wiki
Jump to: navigation, search
Line 7: Line 7:
 
var brd = JXG.JSXGraph.initBoard('box1', {boundingbox:[0,50,8,-50], axis:true, keepaspectratio:false});
 
var brd = JXG.JSXGraph.initBoard('box1', {boundingbox:[0,50,8,-50], axis:true, keepaspectratio:false});
  
var mu = brd.create('slider', [[-2.5,30], [5,30], [0, 1, 1]], {name:'μ'});
+
var mu = brd.create('slider', [[2.5,30], [5,30], [0, 1, 1]], {name:'μ'});
 
var plot = brd.create('curve', plotdata, {type:'plot'});
 
var plot = brd.create('curve', plotdata, {type:'plot'});
 
</jsxgraph>
 
</jsxgraph>

Revision as of 09:34, 12 April 2014

The JavaScript code