Difference between revisions of "Plot data with slider"

From JSXGraph Wiki
Jump to navigationJump to search
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 10:32, 12 April 2014

The JavaScript code