Showing 7 of 29 total issues
File bubble.js
has 784 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
angular.module('app', ['chart.js'])
.config(['ChartJsProvider', function (ChartJsProvider) {
'use strict';
ChartJsProvider.setOptions({
tooltips: { enabled: false }
Function ChartJsFactory
has 239 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ChartJsFactory (ChartJs, $timeout) {
return function chart (type) {
return {
restrict: 'CA',
scope: {
File test.unit.js
has 361 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*jshint mocha:true*/
/*global module:true*/
/*global inject:true*/
/*global expect:true*/
/*global sinon:true*/
File angular-chart.js
has 313 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function (factory) {
'use strict';
if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(
Function chart
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function chart (type) {
return {
restrict: 'CA',
scope: {
chartGetColor: '=?',
Function link
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope, elem/*, attrs */) {
if (useExcanvas) window.G_vmlCanvasManager.initElement(elem[0]);
// Order of setting "watch" matter
scope.$watch('chartData', watchData, true);
Function getDataSets
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getDataSets (labels, data, series, colors, datasetOverride) {