Difference between revisions of "Google style chart"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
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 12:21, 9 May 2009