angular-chart.js
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 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) {