Plot data with slider: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 12: Line 12:
plot.updateDataArray = function() {
plot.updateDataArray = function() {
     var i, len = plotData[1].length;
     var i, len = plotData[1].length;
      
 
     this.dataY = [];
     for (i = 0; i < len; i++) {
     for (i = 0; i < len; i++) {
         this.dataY[i] = plotData[1][i] * mu.Value();
         this.dataY[i] = plotData[1][i] * mu.Value();

Revision as of 08:41, 12 April 2014

The JavaScript code