Data plot: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 15: | Line 15: | ||
for (i=0;i<data.length-1;i++) { | for (i=0;i<data.length-1;i++) { | ||
d = data[i].split(';'); | d = data[i].split(';'); | ||
x[i] = d[ | x[i] = d[0]*1.0; | ||
y[i] = d[ | y[i] = d[1]*1.0; | ||
if (x[i]>maxX) maxX = x[i]; | if (x[i]>maxX) maxX = x[i]; | ||
if (y[i]>maxY) maxY = y[i]; | if (y[i]>maxY) maxY = y[i]; |