Showing 84 of 98 total issues
File Chart.js
has 3545 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Chart.js
* http://chartjs.org/
* Version: 1.0.2
*
File Chart.Core.js
has 1801 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Chart.js
* http://chartjs.org/
* Version: {{ version }}
*
File Chart.Overlay.js
has 463 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
"use strict";
var root = this,
Chart = root.Chart,
Function initialize
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(data) {
//Expose options as a scope variable here so we can access it in the ScaleClass
var options = this.options;
//two new varibale to hold the different graph types
this.barDatasets = [];
Function initialize
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(data) {
//Expose options as a scope variable here so we can access it in the ScaleClass
var options = this.options;
//two new varibale to hold the different graph types
this.barDatasets = [];
Function showTooltip
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showTooltip: function(ChartElements, forceRedraw) {
// Only redraw the chart if we've actually changed what we're hovering on.
if (typeof this.activeElements === 'undefined') this.activeElements = [];
var isChanged = (function(Elements) {
var changed = false;
Function showTooltip
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showTooltip: function(ChartElements, forceRedraw) {
// Only redraw the chart if we've actually changed what we're hovering on.
if (typeof this.activeElements === 'undefined') this.activeElements = [];
var isChanged = (function(Elements) {
var changed = false;
File Chart.Line.js
has 379 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
"use strict";
var root = this,
Chart = root.Chart,
Function showTooltip
has 116 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showTooltip: function(ChartElements, forceRedraw) {
// Only redraw the chart if we've actually changed what we're hovering on.
if (typeof this.activeElements === 'undefined') this.activeElements = [];
var isChanged = (function(Elements) {
Function showTooltip
has 116 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showTooltip: function(ChartElements, forceRedraw) {
// Only redraw the chart if we've actually changed what we're hovering on.
if (typeof this.activeElements === 'undefined') this.activeElements = [];
var isChanged = (function(Elements) {
Function drawDatasets
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drawDatasets: function(datasets, easingDecimal) {
var ctx = this.chart.ctx;
// Some helper methods for getting the next/prev points
var hasValue = function(item) {
Function drawDatasets
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drawDatasets: function(datasets, easingDecimal) {
var ctx = this.chart.ctx;
// Some helper methods for getting the next/prev points
var hasValue = function(item) {
File Chart.Bar.js
has 324 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
"use strict";
var root = this,
Chart = root.Chart,
Function initialize
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(data) {
//Expose options as a scope variable here so we can access it in the ScaleClass
var options = this.options;
this.ScaleClass = Chart.Scale.extend({
offsetGridLines: true,
Function initialize
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(data) {
//Expose options as a scope variable here so we can access it in the ScaleClass
var options = this.options;
this.ScaleClass = Chart.Scale.extend({
offsetGridLines: true,
Function draw
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function() {
if (this.display) {
var ctx = this.ctx;
each(this.yLabels, function(label, index) {
// Don't draw a centre value
Function draw
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function() {
if (this.display) {
var ctx = this.ctx;
each(this.yLabels, function(label, index) {
// Don't draw a centre value
Function initialize
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(data) {
//Declare the extension of the default point, to cater for the options passed in to the constructor
this.PointClass = Chart.Point.extend({
strokeWidth: this.options.pointDotStrokeWidth,
radius: this.options.pointDotRadius,
Function initialize
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(data) {
//Declare the extension of the default point, to cater for the options passed in to the constructor
this.PointClass = Chart.Point.extend({
strokeWidth: this.options.pointDotStrokeWidth,
radius: this.options.pointDotRadius,
Function setUpYAxes
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setUpYAxes: function() {
var defaultConfig = {
positionLeft: this.positionLeft,
fontSize: this.fontSize,
beginAtZero: this.beginAtZero,