Plot data with slider: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
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 08:34, 12 April 2014

The JavaScript code