Plot data with slider: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) 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> | ||