jtblin/angular-chart.js

View on GitHub
angular-chart.js

Summary

Maintainability
D
2 days
Test Coverage

Function ChartJsFactory has 239 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function ChartJsFactory (ChartJs, $timeout) {
    return function chart (type) {
      return {
        restrict: 'CA',
        scope: {
Severity: Major
Found in angular-chart.js - About 1 day to fix

    File angular-chart.js has 313 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    (function (factory) {
      'use strict';
      if (typeof exports === 'object') {
        // Node/CommonJS
        module.exports = factory(
    Severity: Minor
    Found in angular-chart.js - About 3 hrs to fix

      Function chart has 53 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          return function chart (type) {
            return {
              restrict: 'CA',
              scope: {
                chartGetColor: '=?',
      Severity: Major
      Found in angular-chart.js - About 2 hrs to fix

        Function link has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                link: function (scope, elem/*, attrs */) {
                  if (useExcanvas) window.G_vmlCanvasManager.initElement(elem[0]);
        
                  // Order of setting "watch" matter
                  scope.$watch('chartData', watchData, true);
        Severity: Minor
        Found in angular-chart.js - About 1 hr to fix

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

              function getDataSets (labels, data, series, colors, datasetOverride) {
          Severity: Minor
          Found in angular-chart.js - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status