zingchart/ZingChart-AngularJS

View on GitHub

Showing 2 of 2 total issues

Function controller has 112 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            controller : ['$scope', '$element', '$attrs', function($scope, $element, $attrs){
                var id;
                // Get or generate id
                if(!$attrs.id){
                    id = 'zingchart-auto-' + currentAutoId;
Severity: Major
Found in src/zingchart-angularjs.js - About 4 hrs to fix

    Function renderChart has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    $scope.renderChart = function (){
                        var id = $element.attr('id');
                        //Defaults
                        var _json = {
                            data : {
    Severity: Minor
    Found in src/zingchart-angularjs.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language