zingchart/ZingChart-AngularJS

View on GitHub
src/zingchart-angularjs.js

Summary

Maintainability
B
5 hrs
Test Coverage

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

      There are no issues that match your filters.

      Category
      Status