Showing 2 of 2 total issues
Function controller
has 112 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller : ['$scope', '$element', '$attrs', function($scope, $element, $attrs){
var id;
// Get or generate id
if(!$attrs.id){
id = 'zingchart-auto-' + currentAutoId;
Function renderChart
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.renderChart = function (){
var id = $element.attr('id');
//Defaults
var _json = {
data : {