Time series II: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 8: Line 8:
var toDate = function(datestr) {
var toDate = function(datestr) {
         var a = datestr.split('.');
         var a = datestr.split('.');
alert(a);
alert(a+' '+(new Date(a[2],a[1],a[0])).getTime());
         return new Date(a[2],a[1],a[0]);
         return new Date(a[2],a[1],a[0]);
     };
     };
Line 30: Line 30:
     points.push(board.create('point', [x[x.length-1],axisHeight], {visible:false, name:'', fixed:true}));  
     points.push(board.create('point', [x[x.length-1],axisHeight], {visible:false, name:'', fixed:true}));  
   
   
     // Filled area. We need two additional points [start,0] and [end,0]
     // Filled area. We need two additional points [start,axisHeight] and [end,axisHeight]
     board.create('polygon',points, {withLines:false,fillColor:'#e6f2fa',withLabel:false});
     board.create('polygon',points, {withLines:false,fillColor:'#e6f2fa',withLabel:false});
   
   

Revision as of 17:04, 3 February 2010

The weight of Antonia Wassermann