src/js/widgets/stackGraphWidget.js
branchpopcorn-port
changeset 766 aa26ddaf2556
parent 694 528626981afe
child 820 7968346b9689
--- a/src/js/widgets/stackGraphWidget.js	Thu Feb 02 16:06:40 2012 +0100
+++ b/src/js/widgets/stackGraphWidget.js	Thu Feb 02 16:07:12 2012 +0100
@@ -9,23 +9,23 @@
             {
                 "keywords" : [ "++" ],
                 "description" : "positif",
-                "color" : "#1D973D",
+                "color" : "#1D973D"
             },
             {
                 "keywords" : [ "--" ],
                 "description" : "negatif",
-                "color" : "#CE0A15",
+                "color" : "#CE0A15"
             },
             {
                 "keywords" : [ "==" ],
                 "description" : "reference",
-                "color" : "#C5A62D",   
+                "color" : "#C5A62D"  
             },
             {
                 "keywords" : [ "??" ],
                 "description" : "question",
-                "color" : "#036AAE",
-            },
+                "color" : "#036AAE"
+            }
         ],
         _defaultDefColor = "#585858";
     this.height =  this._config.height || 50;
@@ -98,7 +98,7 @@
             if (!this.isStreamGraph) {
                 this.paper.rect(i * _width, _base, _width - 1, _h ).attr({
                     "stroke" : "none",
-                    "fill" : this.defaultcolorconf,
+                    "fill" : this.defaultcolorconf
                 });
             }
            _paths[0].push(_base);
@@ -108,7 +108,7 @@
                 if (!this.isStreamGraph) {
                     this.paper.rect(i * _width, _base, _width - 1, _h ).attr({
                         "stroke" : "none",
-                        "fill" : this.tagconf[j].color,
+                        "fill" : this.tagconf[j].color
                     });
                 }
                 _paths[j+1].push(_base);
@@ -135,7 +135,7 @@
             },'') + 'L' + this.width + ' ' + _paths[j][_paths[j].length - 1] + 'L' + this.width + ' ' + this.height + 'L0 ' + this.height;
             this.paper.path(_d).attr({
                 "stroke" : "none",
-                "fill" : (j ? this.tagconf[j-1].color : this.defaultcolorconf),
+                "fill" : (j ? this.tagconf[j-1].color : this.defaultcolorconf)
             });
         }
     }
@@ -143,13 +143,13 @@
         .attr({
             "stroke" : "none",
             "fill" : "#ff00ff",
-            "opacity" : 0,
+            "opacity" : 0
         })
     this.rectangleProgress = this.paper.rect(0,0,0,this.height)
         .attr({
             "stroke" : "none",
             "fill" : "#808080",
-            "opacity" : .3,
+            "opacity" : .3
         });
     this.ligneProgress = this.paper.path("M0 0L0 "+this.height).attr({"stroke":"#ff00ff", "line-width" : 2})
     
@@ -170,7 +170,7 @@
         .mouseout(function() {
             _this.TooltipWidget.hide();
             _this.rectangleFocus.attr({
-                "opacity" : 0,
+                "opacity" : 0
             })
         })
 }
@@ -179,10 +179,10 @@
     var _currentTime = this._Popcorn.currentTime(),
         _x = (1000 * _currentTime / this.duration) * this.width;
     this.rectangleProgress.attr({
-        "width" : _x,
+        "width" : _x
     });
     this.ligneProgress.attr({
-        "path" : "M" + _x + " 0L" + _x + " " + this.height,
+        "path" : "M" + _x + " 0L" + _x + " " + this.height
     })
 }
 
@@ -214,7 +214,7 @@
     this.TooltipWidget.selector.find(".tip").html(_html);
     this.rectangleFocus.attr({
         "x" : _segment * _width,
-        "opacity" : .4,
+        "opacity" : .4
     })
 }