Plot data with slider: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 1: Line 1:
<jsxgraph width="600" height="300" box="box1">
<jsxgraph width="600" height="300" box="box1">
var plotdata = [
  [0, 1, 2, 3, 4, 5, 6, 7],
  [40, -1, 1, -40, -40, 1, 1, 40]
];
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 plot = brd.create('curve', plotdata, {type='plot'});
</jsxgraph>
</jsxgraph>



Revision as of 08:32, 12 April 2014

The JavaScript code