Display stock quotes from Yahoo!: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 27: Line 27:
                 if (!g) {  
                 if (!g) {  
                     g = brd.createElement('curve', [x,y],{strokeWidth:3, strokeColor:'green'});  
                     g = brd.createElement('curve', [x,y],{strokeWidth:3, strokeColor:'green'});  
                     txt = brd.createElement('curve', [3,(hi-lo)*0.5,a[1]]});  
                     txt = brd.createElement('curve', [3,(hi+lo)*0.5,a[1]],{fontSize:'14px'});  
                 } else {
                 } else {
                     g.dataX = x;                     
                     g.dataX = x;                     

Revision as of 14:16, 20 August 2009

This JSXGraph application fetches the live stock quotes of the German DAX Index (gdaxi) from Yahoo!. The curve is updated only once a second, so initially it needs a little patience until the curve is visible.