camdub/Internships

View on GitHub
public/javascripts/jquery.svg/jquery.svggraph.js

Summary

Maintainability
F
3 wks
Test Coverage

File jquery.svggraph.js has 1046 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* http://keith-wood.name/svg.html
   SVG graphing extension for jQuery v1.4.3.
   Written by Keith Wood (kbwood{at}iinet.com.au) August 2007.
   Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and
   MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses.
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 2 days to fix

    Function _drawSeries has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _drawSeries: function(graph, dims) {
            var totals = graph._getTotals();
            var numSer = graph._series.length;
            var numVal = (numSer ? (graph._series[0])._values.length : 0);
            var path = graph._wrapper.createPath();
    Severity: Major
    Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 2 hrs to fix

      Function _drawAxes has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _drawAxes: function(noX) {
              var dims = this._getDims();
              if (this.xAxis && !noX) {
                  if (this.xAxis._title) {
                      this._wrapper.text(this._chartCont, dims[this.X] + dims[this.W] / 2,
      Severity: Minor
      Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 1 hr to fix

        Function _drawAxis has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _drawAxis: function(axis, id, x1, y1, x2, y2) {
                var horiz = (y1 == y2);
                var gl = this._wrapper.group(this._chartCont, $.extend({class_: id}, axis._lineFormat));
                var gt = this._wrapper.group(this._chartCont, $.extend({class_: id + 'Labels',
                    textAnchor: (horiz ? 'middle' : 'end')}, axis._labelFormat));
        Severity: Minor
        Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 1 hr to fix

          Function _drawGraph has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _drawGraph: function() {
                  if (!this._drawNow) {
                      return;
                  }
                  while (this._chartCont.firstChild) {
          Severity: Minor
          Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 1 hr to fix

            Function _drawAxes has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _drawAxes: function(graph, numSer, numVal, barWidth, barGap, dims, yScale) {
                    // X-axis
                    var axis = graph.yAxis;
                    if (axis) {
                        if (axis._title) {
            Severity: Minor
            Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 1 hr to fix

              Function _drawColumns has 8 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  _drawColumns: function(graph, numSer, numVal, barWidth, barGap, dims, xScale, yScale) {
              Severity: Major
              Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 1 hr to fix

                Function _drawSeries has 8 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    _drawSeries: function(graph, cur, numSer, barWidth, barGap, dims, xScale, yScale) {
                Severity: Major
                Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 1 hr to fix

                  Function _drawSeries has 8 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      _drawSeries: function(graph, cur, numSer, barWidth, barGap, dims, xScale, yScale) {
                  Severity: Major
                  Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 1 hr to fix

                    Function _drawRows has 8 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        _drawRows: function(graph, numSer, numVal, barWidth, barGap, dims, xScale, yScale) {
                    Severity: Major
                    Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 1 hr to fix

                      Function SVGGraphSeries has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      function SVGGraphSeries(graph, name, values, fill, stroke, strokeWidth, settings) {
                      Severity: Major
                      Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 50 mins to fix

                        Function _drawAxes has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            _drawAxes: function(graph, numSer, numVal, barWidth, barGap, dims, yScale) {
                        Severity: Major
                        Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 50 mins to fix

                          Function _drawXAxis has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              _drawXAxis: function(graph, numSer, numVal, barWidth, barGap, dims, xScale) {
                          Severity: Major
                          Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 50 mins to fix

                            Function addSeries has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                addSeries: function(name, values, fill, stroke, strokeWidth, settings) {
                            Severity: Minor
                            Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 45 mins to fix

                              Function SVGGraphAxis has 6 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              function SVGGraphAxis(graph, title, min, max, major, minor) {
                              Severity: Minor
                              Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 45 mins to fix

                                Function _drawAxis has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    _drawAxis: function(axis, id, x1, y1, x2, y2) {
                                Severity: Minor
                                Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 45 mins to fix

                                  Function _drawXAxis has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      _drawXAxis: function(graph, numVal, barWidth, barGap, dims, xScale) {
                                  Severity: Minor
                                  Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 45 mins to fix

                                    Function _drawYAxis has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        _drawYAxis: function(graph, numVal, barWidth, barGap, dims, yScale) {
                                    Severity: Minor
                                    Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 45 mins to fix

                                      Function _drawSeries has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          _drawSeries: function(graph, cur, dims, xScale, yScale) {
                                      Severity: Minor
                                      Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 35 mins to fix

                                        Function _drawGridlines has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            _drawGridlines: function(bg, axis, horiz, dims, format) {
                                        Severity: Minor
                                        Found in public/javascripts/jquery.svg/jquery.svggraph.js - About 35 mins to fix

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                          $.extend(SVGGraphLegend.prototype, {
                                          
                                              /* Set or retrieve whether the legend should be shown.
                                                 @param  show  (boolean) true to display it, false to hide it
                                                 @return  (SVGGraphLegend) this legend object or
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 day to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 749..808

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 344.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              title: function(title, offset, colour, format) {
                                                  if (arguments.length == 0) {
                                                      return {title: this._title, offset: this._titleOffset, format: this._titleFormat};
                                                  }
                                                  if (typeof offset != 'number') {
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 day to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 668..688

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 225.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              title: function(value, offset, colour, settings) {
                                                  if (arguments.length == 0) {
                                                      return this._title;
                                                  }
                                                  if (typeof offset != 'number') {
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 7 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 140..158

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 185.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  if (!this._chartCont.width) {
                                                      this._chartCont.setAttribute('width',
                                                          parseInt(this._chartCont.getAttribute('width'), 10) || this._wrapper._width());
                                                  }
                                                  else if (this._chartCont.width.baseVal) {
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 7 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 219..229

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 183.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  if (!this._chartCont.height) {
                                                      this._chartCont.setAttribute('height',
                                                          parseInt(this._chartCont.getAttribute('height'), 10) || this._wrapper._height());
                                                  }
                                                  else if (this._chartCont.height.baseVal) {
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 7 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 230..240

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 181.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              ticks: function(major, minor, size, position) {
                                                  if (arguments.length == 0) {
                                                      return this._ticks;
                                                  }
                                                  if (typeof size == 'string') {
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 6 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 645..659

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 166.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              gridlines: function(xSettings, ySettings) {
                                                  if (arguments.length == 0) {
                                                      return this._gridlines;
                                                  }
                                                  this._gridlines = [(typeof xSettings == 'string' ? {stroke: xSettings} : xSettings),
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 5 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 107..118

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 146.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  if (axis._title) {
                                                      graph._wrapper.text(graph._chartCont, 0, 0, axis._title, $.extend({textAnchor: 'middle',
                                                          transform: 'translate(' + (dims[graph.X] - axis._titleOffset) + ',' +
                                                          (dims[graph.Y] + dims[graph.H] / 2) + ') rotate(-90)'}, axis._titleFormat || {}));
                                                  }
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 4 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1170..1174

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 123.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  if (axis._title) {
                                                      graph._wrapper.text(graph._chartCont, 0, 0, axis._title, $.extend({textAnchor: 'middle',
                                                          transform: 'translate(' + (dims[graph.X] - axis._titleOffset) + ',' +
                                                          (dims[graph.Y] + dims[graph.H] / 2) + ') rotate(-90)'}, axis._titleFormat || {}));
                                                  }
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 4 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1279..1283

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 123.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                          function SVGGraphLegend(graph, bgSettings, textSettings) {
                                              this._graph = graph; // The owning graph
                                              this._show = true; // Show the legend?
                                              this._area = [0.9, 0.1, 1.0, 0.9]; // The legend area: left, top, right, bottom,
                                                  // > 1 in pixels, <= 1 as proportion
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 4 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 739..747

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 123.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              format: function(fill, stroke, settings) {
                                                  if (arguments.length == 0) {
                                                      return this._chartFormat;
                                                  }
                                                  if (typeof stroke == 'object') {
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 4 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 84..96

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 122.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  if (axis._title) {
                                                      graph._wrapper.text(graph._chartCont, dims[graph.X] + dims[graph.W] / 2,
                                                          dims[graph.Y] + dims[graph.H] + axis._titleOffset,
                                                          axis._title, $.extend({textAnchor: 'middle'}, axis._titleFormat || {}));
                                                  }
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 3 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1067..1071

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 114.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  if (axis._title) {
                                                      graph._wrapper.text(graph._chartCont, dims[graph.X] + dims[graph.W] / 2,
                                                          dims[graph.Y] + dims[graph.H] + axis._titleOffset,
                                                          axis._title, $.extend({textAnchor: 'middle'}, axis._titleFormat || {}));
                                                  }
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 3 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 957..961

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 114.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                          graph._wrapper.line(gl, x, dims[graph.Y] + dims[graph.H] + offsets[0] * axis._ticks.size,
                                                              x, dims[graph.Y] + dims[graph.H] + offsets[1] * axis._ticks.size);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 3 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 971..972

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 99.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                          graph._wrapper.line(gl, x, dims[graph.Y] + dims[graph.H] + offsets[0] * axis._ticks.size,
                                                              x, dims[graph.Y] + dims[graph.H] + offsets[1] * axis._ticks.size);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 3 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1081..1082

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 99.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                          Open

                                                      this._wrapper.line(g, (horiz ? dims[this.X] : v), (horiz ? v : dims[this.Y]),
                                                          (horiz ? dims[this.X] + dims[this.W] : v), (horiz ? v : dims[this.Y] + dims[this.H]));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 2 other locations - About 3 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 324..325
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 343..345

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 99.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                          this._wrapper.line(gl, (horiz ? v : x1 + len * offsets[0]),
                                                              (horiz ? y1 + len * offsets[0] : v),
                                                              (horiz ? v : x1 + len * offsets[1]),
                                                              (horiz ? y1 + len * offsets[1] : v));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 360..363

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 91.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  graph._wrapper.line(gl, dims[graph.X], dims[graph.Y] + dims[graph.H],
                                                      dims[graph.X] + dims[graph.W], dims[graph.Y] + dims[graph.H]);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1075..1076

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 87.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  graph._wrapper.line(gl, dims[graph.X], dims[graph.Y] + dims[graph.H],
                                                  dims[graph.X] + dims[graph.W], dims[graph.Y] + dims[graph.H]);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 965..966

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 87.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                      graph._drawAxis(axis, 'xAxis', dims[graph.X], dims[graph.Y] + dims[graph.H],
                                                          dims[graph.X] + dims[graph.W], dims[graph.Y] + dims[graph.H]);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1245..1246

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 84.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  graph._drawAxis(pAxis, 'xAxis', dims[graph.X], dims[graph.Y] + dims[graph.H],
                                                      dims[graph.X] + dims[graph.W], dims[graph.Y] + dims[graph.H]);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1165..1166

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 84.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              scale: function(min, max) {
                                                  if (arguments.length == 0) {
                                                      return this._scale;
                                                  }
                                                  this._scale.min = min;
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 627..635

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 83.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var g = graph._wrapper.group(this._chart,
                                                      $.extend({class_: 'series' + cur, fill: series._fill,
                                                      stroke: series._stroke, strokeWidth: series._strokeWidth},
                                                      series._settings || {}));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 942..944
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1048..1051
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1260..1263

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 79.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var g = graph._wrapper.group(this._chart,
                                                      $.extend({class_: 'series' + cur, fill: series._fill, stroke: series._stroke,
                                                      strokeWidth: series._strokeWidth}, series._settings || {}));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1048..1051
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1143..1146
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1260..1263

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 79.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                      var g = graph._wrapper.group(this._chart,
                                                          $.extend({class_: 'series' + s, fill: series._fill,
                                                          stroke: series._stroke, strokeWidth: series._strokeWidth},
                                                          series._settings || {}));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 942..944
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1048..1051
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1143..1146

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 79.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                      var g = graph._wrapper.group(this._chart,
                                                          $.extend({class_: 'series' + s, fill: series._fill,
                                                          stroke: series._stroke, strokeWidth: series._strokeWidth},
                                                          series._settings || {}));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 942..944
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1143..1146
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1260..1263

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 79.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              area: function(left, top, right, bottom) {
                                                  if (arguments.length == 0) {
                                                      return this._area;
                                                  }
                                                  this._area = (isArray(left) ? left : [left, top, right, bottom]);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 69..76

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 77.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                          graph._wrapper.text(gt, x, dims[graph.Y] + dims[graph.H] + 2 * axis._ticks.size,
                                                              (axis._labels ? axis._labels[i] : '' + i));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 976..977

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 76.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                          graph._wrapper.text(gt, x, dims[graph.Y] + dims[graph.H] + 2 * axis._ticks.size,
                                                              (axis._labels ? axis._labels[i] : '' + i));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1086..1087

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 76.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              _drawTitle: function() {
                                                  this._wrapper.text(this._chartCont, this._getValue(this._chartCont, 'width') / 2,
                                                      this._title.offset, this._title.value, this._title.settings);
                                              },
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 413..416

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 76.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                          graph._wrapper.line(gl, dims[graph.X] + offsets[0] * axis._ticks.size, y,
                                                              dims[graph.X] + offsets[1] * axis._ticks.size, y);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1183..1184

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 75.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                          graph._wrapper.line(gl, dims[graph.X] + offsets[0] * axis._ticks.size, y,
                                                              dims[graph.X] + offsets[1] * axis._ticks.size, y);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1294..1295

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 75.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                      var minor = (!axis._ticks.minor ? axis._scale.max + 1 :
                                                          Math.floor(axis._scale.min / axis._ticks.minor) * axis._ticks.minor);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 350..351

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 75.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                      this._wrapper.text(g, xBase + (horiz ? i * offset : 0) + this.legend._sampleSize + 5,
                                                          yBase + (horiz ? 0 : i * offset), series._name, this.legend._textSettings);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 2 hrs to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 437..438

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 75.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              _getValue: function(node, name) {
                                                  return (!node[name] ? parseInt(node.getAttribute(name), 10) :
                                                      (node[name].baseVal ? node[name].baseVal.value : node[name]));
                                              },
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 260..263

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 72.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  if (this._gridlines[1] && this.xAxis._ticks.major && !noXGrid) {
                                                      this._drawGridlines(bg, this.xAxis, false, dims, this._gridlines[1]);
                                                  }
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 380..382

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 64.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  if (this._gridlines[0] && this.yAxis._ticks.major && !noYGrid) {
                                                      this._drawGridlines(bg, this.yAxis, true, dims, this._gridlines[0]);
                                                  }
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 383..385

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 64.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  graph._wrapper.line(gl, dims[graph.X], dims[graph.Y], dims[graph.X], dims[graph.Y] + dims[graph.H]);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1288..1289

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 63.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  graph._wrapper.line(gl, dims[graph.X], dims[graph.Y],
                                                      dims[graph.X], dims[graph.Y] + dims[graph.H]);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1178..1178

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 63.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  if (graph._gridlines[0] && graph.xAxis._ticks.major) {
                                                      graph._drawGridlines(bg, graph._getPercentageAxis(), true, dims, graph._gridlines[0]);
                                                  }
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1227..1229

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 61.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  if (graph._gridlines[0] && graph.xAxis._ticks.major) {
                                                      graph._drawGridlines(bg, graph._getPercentageAxis(), false, dims, graph._gridlines[0]);
                                                  }
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1015..1017

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 61.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  this._wrapper.rect(g, dims[this.X], dims[this.Y], dims[this.W], dims[this.H],
                                                      this.legend._bgSettings);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 425..426

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 60.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                          graph._wrapper.text(gt, dims[graph.X] - axis._ticks.size, y,
                                                              (axis._labels ? axis._labels[i] : '' + i));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1188..1189

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 60.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                          graph._wrapper.text(gt, dims[graph.X] - axis._ticks.size, y,
                                                              (axis._labels ? axis._labels[i] : '' + i));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1299..1300

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 60.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  var p = graph._wrapper.path(this._chart, path,
                                                      $.extend({id: 'series' + cur, fill: 'none', stroke: series._stroke,
                                                      strokeWidth: series._strokeWidth}, series._settings || {}));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 406..408

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 59.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  var gt = this._wrapper.group(this._chartCont, $.extend({class_: id + 'Labels',
                                                      textAnchor: (horiz ? 'middle' : 'end')}, axis._labelFormat));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 339..340

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 58.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  this._wrapper.rect(bg, dims[this.X], dims[this.Y], dims[this.W], dims[this.H], this._chartFormat);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 1 hr to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 301..301

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 56.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var height = (area[this.B] > 1 ? area[this.B] : availHeight * area[this.B]) - top;
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 40 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 367..367
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 275..275
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 276..276

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 49.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var width = (area[this.R] > 1 ? area[this.R] : availWidth * area[this.R]) - left;
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 40 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 368..368
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 275..275
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 276..276

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 49.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                          Open

                                              container: function(cont) {
                                                  if (arguments.length == 0) {
                                                      return this._chartCont;
                                                  }
                                                  this._chartCont = cont;
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 2 other locations - About 40 mins to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 53..59
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 124..130

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 49.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  var yBase = dims[this.Y] + ((horiz ? dims[this.H] : offset) + this.legend._sampleSize) / 2;
                                          Severity: Minor
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 40 mins to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 431..431

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 49.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var gt = graph._wrapper.group(graph._chartCont, $.extend({class_: 'xAxisLabels',
                                                      textAnchor: 'middle'}, axis._labelFormat));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 40 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1073..1074
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1176..1177
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1286..1287

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 48.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var gt = graph._wrapper.group(graph._chartCont, $.extend(
                                                      {class_: 'yAxisLabels', textAnchor: 'end'}, axis._labelFormat));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 40 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 963..964
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1073..1074
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1286..1287

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 48.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var gt = graph._wrapper.group(graph._chartCont, $.extend({class_: 'xAxisLabels',
                                                      textAnchor: 'middle'}, axis._labelFormat));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 40 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 963..964
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1176..1177
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1286..1287

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 48.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var gt = graph._wrapper.group(graph._chartCont,
                                                      $.extend({class_: 'yAxisLabels', textAnchor: 'end'}, axis._labelFormat));
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 40 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 963..964
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1073..1074
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1176..1177

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 48.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var yScale = dims[graph.H] / (graph.yAxis._scale.max - graph.yAxis._scale.min);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 35 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1129..1129
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1337..1337
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1338..1338

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 47.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var xScale = dims[graph.W] / (graph.yAxis._scale.max - graph.yAxis._scale.min);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 35 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 928..928
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1337..1337
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1338..1338

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 47.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var yScale = dims[graph.H] / (graph.yAxis._scale.max - graph.yAxis._scale.min);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 35 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 928..928
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1129..1129
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1337..1337

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 47.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                      var major = Math.floor(axis._scale.min / axis._ticks.major) * axis._ticks.major;
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 35 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 398..398
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 319..319
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 348..348

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 47.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var xScale = dims[graph.W] / (graph.xAxis._scale.max - graph.xAxis._scale.min);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 35 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 928..928
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1129..1129
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1338..1338

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 47.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var major = Math.floor(axis._scale.min / axis._ticks.major) * axis._ticks.major;
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 35 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 468..468
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 319..319
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 348..348

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 47.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                          var x = dims[graph.X] + xScale * (barGap / 2 + (i + 0.5) * (numSer * barWidth + barGap));
                                          Severity: Minor
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 35 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 1187..1187

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 47.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                          var y = dims[graph.Y] + yScale * (barGap / 2 + (i + 0.5) * (numSer * barWidth + barGap));
                                          Severity: Minor
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 35 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 975..975

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 47.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              series: function(i) {
                                                  return (arguments.length > 0 ? this._series[i] : null) || this._series;
                                              },
                                          Severity: Minor
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 35 mins to fix
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 180..182

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 46.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var left = (area[this.L] > 1 ? area[this.L] : availWidth * area[this.L]);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 30 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 366..366
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 273..273
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 274..274

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 45.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                                  var top = (area[this.T] > 1 ? area[this.T] : availHeight * area[this.T]);
                                          Severity: Major
                                          Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 30 mins to fix
                                          public/javascripts/jquery.svg/jquery.svggraph.js on lines 365..365
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 273..273
                                          public/javascripts/jquery.svg/jquery.svgplot.js on lines 274..274

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 45.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          There are no issues that match your filters.

                                          Category
                                          Status