Difference between revisions of "Time series II"

From JSXGraph Wiki
Jump to navigationJump to search
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 18:04, 3 February 2010

The weight of Antonia Wassermann