}
var graph = $( "<div/>" ).addClass( "graph" ).appendTo( "#graphs" ),
text = $( "<div/>" ).text( ++i + ". " + name ).appendTo( graph ),
- canvas = $( "<canvas/>" ).appendTo( graph )[ 0 ];
+ wrap = $( "<div/>" ).appendTo( graph ).css( 'overflow', 'hidden' ),
+ canvas = $( "<canvas/>" ).appendTo( wrap )[ 0 ];
canvas.width = width;
canvas.height = height;
var drawHeight = height * 0.8,
});
ctx.stroke();
graph.click(function() {
- $( canvas )
+ wrap
.animate( { height: "hide" }, 2000, name )
- .animate( { left: 0 }, 800 )
+ .delay( 800 )
.animate( { height: "show" }, 2000, name );
});