comparison pylons_app/public/js/graph.js @ 293:68dc70295a76

Ie graph support. + some small html/tooltip changes
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 23 Jun 2010 20:46:32 +0200
parents 1dbe02063123
children 46b7d108ea7a
comparison
equal deleted inserted replaced
292:d7aeae23c56d 293:68dc70295a76
23 23
24 function BranchRenderer() { 24 function BranchRenderer() {
25 25
26 this.canvas = document.getElementById("graph_canvas"); 26 this.canvas = document.getElementById("graph_canvas");
27 27
28 //if ($.browser.msie) 28 if (navigator.userAgent.indexOf('MSIE') >= 0)
29 // this.canvas = window.G_vmlCanvasManager.initElement(this.canvas); 29 this.canvas = window.G_vmlCanvasManager.initElement(this.canvas);
30 this.ctx = this.canvas.getContext('2d'); 30 this.ctx = this.canvas.getContext('2d');
31 this.ctx.strokeStyle = 'rgb(0, 0, 0)'; 31 this.ctx.strokeStyle = 'rgb(0, 0, 0)';
32 this.ctx.fillStyle = 'rgb(0, 0, 0)'; 32 this.ctx.fillStyle = 'rgb(0, 0, 0)';
33 this.cur = [0, 0]; 33 this.cur = [0, 0];
34 this.max_column = 1; 34 this.max_column = 1;