Google style chart: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
if (graph1) { brd.removeObject(graph1); } | if (graph1) { brd.removeObject(graph1); } | ||
var t = ''; | var t = ''; | ||
for (var i= | for (var i=0;i<=20;i++) { | ||
t += i+' '+brd.round(((Math.random()*4-2)+3),2)+'\n'; | t += i+' '+brd.round(((Math.random()*4-2)+3),2)+'\n'; | ||
} | } | ||
Line 32: | Line 32: | ||
} | } | ||
} | } | ||
brd.createElement('curve', [x,y]); | brd.createElement('curve', [x,y], {strokeWidth:3, strockeColor:'#0077cc', highlightStrokeColor:'#0077cc'}); | ||
} | } | ||
</jsxgraph> | </jsxgraph> | ||
[[Category:Examples]] |
Revision as of 10:21, 9 May 2009