comparison rhodecode/public/js/graph.js @ 2948:bd97aba292f1 beta

graph: thinner lines/circles
author Aras Pranckevicius <aras@unity3d.com>
date Mon, 15 Oct 2012 22:00:01 +0300
parents fcbcef60be02
children 729859bd1e6a 2792019caf67
comparison
equal deleted inserted replaced
2947:01f5633ee68b 2948:bd97aba292f1
30 this.canvas = window.G_vmlCanvasManager.initElement(this.canvas); 30 this.canvas = window.G_vmlCanvasManager.initElement(this.canvas);
31 this.ctx = this.canvas.getContext('2d'); 31 this.ctx = this.canvas.getContext('2d');
32 this.ctx.strokeStyle = 'rgb(0, 0, 0)'; 32 this.ctx.strokeStyle = 'rgb(0, 0, 0)';
33 this.ctx.fillStyle = 'rgb(0, 0, 0)'; 33 this.ctx.fillStyle = 'rgb(0, 0, 0)';
34 this.cur = [0, 0]; 34 this.cur = [0, 0];
35 this.line_width = 2.5; 35 this.line_width = 2.0;
36 this.dot_radius = 5.5; 36 this.dot_radius = 3.5;
37 37
38 this.setColor = function(color, bg, fg) { 38 this.setColor = function(color, bg, fg) {
39 color %= colors.length; 39 color %= colors.length;
40 var red = (colors[color][0] * fg) || bg; 40 var red = (colors[color][0] * fg) || bg;
41 var green = (colors[color][1] * fg) || bg; 41 var green = (colors[color][1] * fg) || bg;