app/js/components/ng-google-chart.js
Function googleChartDirective
has 149 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function googleChartDirective($timeout, $window, $rootScope, googleChartApiPromise) {
GoogleChartController.$inject = ['$scope', '$element', '$attrs', '$injector', 'FormatManager'];
function GoogleChartController($scope, $element, $attrs, $injector, FormatManager){
Function GoogleChartController
has 141 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function GoogleChartController($scope, $element, $attrs, $injector, FormatManager){
var self = this;
var resizeHandler, wrapperListeners = {}, formatManager,
chartListeners = {}, innerVisualization = null;
self.registerChartListener = registerChartListener;
File ng-google-chart.js
has 391 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*! angular-google-chart 2015-06-16 */
/*
* @description Google Chart Api Directive Module for AngularJS
* @version 0.0.11
* @author Nicolas Bouillon <nicolas@bouil.org>
Function formatManagerFactory
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatManagerFactory(){
// Handles the processing of Google Charts API Formats
function FormatManager(){
var self = this;
var oldFormatTemplates = {};
Function FormatManager
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FormatManager(){
var self = this;
var oldFormatTemplates = {};
self.iFormats = {}; // Holds instances of formats (ie. self.iFormats.date[0] = new google.visualization.DateFormat(params))
self.applyFormats = applyFormats;
Function googleChartApiPromiseFactory
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function googleChartApiPromiseFactory($rootScope, $q, apiConfig, googleJsapiUrl) {
var apiReady = $q.defer();
var onLoad = function () {
// override callback function
var settings = {
Function GoogleChartController
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function GoogleChartController($scope, $element, $attrs, $injector, FormatManager){