Commits

cleonello  committed fe6f2c0

Fix syntax errors and variables in global scope.

  • Participants
  • Parent commits 2a53775

Comments (0)

Files changed (2)

File src/jqplot.lineRenderer.js

             _max: null,
             // can be 3 or '3%' or [1, -2] or ['2%', '-1.5%'']
             interval: '5%'
-        }
+        };
 
         // prop: bandData
         // An array shortcut to specify upper and lower bands around line.
             else return x1 - x0;
         }
 
+        var A, B, C, D;
         // loop through each line segment.  Have # points - 1 line segments.  Nmber segments starting at 1.
         var nmax = gd.length - 1;
         for (var num = 1, gdl = gd.length; num<gdl; num++) {
         var temp = null;
         var t, s, h1, h2, h3, h4;
         var TiX, TiY, Ti1X, Ti1Y;
-        var Px, Py, p;
+        var pX, pY, p;
         var sd = [];
         var spd = [];
         var dist = gd.length/dim;
                 if (fill) {
                     if (this.fillToZero) { 
                         // have to break line up into shapes at axis crossings
-                        negativeColor = this.negativeColor;
+                        var negativeColor = this.negativeColor;
                         if (! this.useNegativeColors) {
                             negativeColor = opts.fillStyle;
                         }

File src/plugins/jqplot.trendline.js

     // called witin scope of the legend object
     // current series passed in
     // must return null or an object {label:label, color:color}
-    function addTrendlineLegend(series) {;
+    function addTrendlineLegend(series) {
         var ret = null;
         if (series.trendline && series.trendline.show) {
             var lt = series.trendline.label.toString();