Difference between revisions of "Plot data with slider"

From JSXGraph Wiki
Jump to: navigation, search
Line 6: Line 6:
  
 
var brd1 = JXG.JSXGraph.initBoard('box1', {boundingbox:[0,50,8,-50], axis:true, keepaspectratio:false});
 
var brd1 = JXG.JSXGraph.initBoard('box1', {boundingbox:[0,50,8,-50], axis:true, keepaspectratio:false});
brd1.defaultaxes.y.setProperty({withLabel: true, name:'u'});
+
brd1.defaultAxes.y.setAttribute({withLabel: true, name:'u'});
  
 
var mu = brd1.create('slider', [[2.5,30], [5,30], [0, 1, 1]], {name:'μ'});
 
var mu = brd1.create('slider', [[2.5,30], [5,30], [0, 1, 1]], {name:'μ'});

Revision as of 09:58, 12 April 2014

The JavaScript code