Google style chart: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 29: | Line 29: | ||
b[1]=b[1]*1.0; | b[1]=b[1]*1.0; | ||
if (!isNaN(b[0]) && !isNaN(b[1])) { | if (!isNaN(b[0]) && !isNaN(b[1])) { | ||
x | x.push(b[0]); | ||
y | y.push(b[1]); | ||
} | } | ||
} | } | ||
x | x.push(x[i-1]); | ||
y | y.push(0); | ||
brd.createElement('curve', [x,y], {strokeWidth:3, strockeColor:'#0077cc', highlightStrokeColor:'#0077cc',fillColor:'#e6f2fa'}); | brd.createElement('curve', [x,y], {strokeWidth:3, strockeColor:'#0077cc', highlightStrokeColor:'#0077cc',fillColor:'#e6f2fa'}); | ||
} | } |
Revision as of 10:26, 9 May 2009