Showing 98 of 98 total issues
Function drawDatasets
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drawDatasets: function(datasets, easingDecimal) {
if (this.options.overlayBars && datasets[0]) {
//go through each data set and sort in order of value size
for (var index = 0; index < datasets[0].bars.length; index++) {
Function draw
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function() {
var ctx = this.chart.ctx;
ctx.font = fontString(this.fontSize, this.fontStyle, this.fontFamily);
Function draw
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function() {
var ctx = this.chart.ctx;
ctx.font = fontString(this.fontSize, this.fontStyle, this.fontFamily);
Function setScaleSize
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setScaleSize: function() {
/*
* Right, this is really confusing and there is a lot of maths going on here
* The gist of the problem is here: https://gist.github.com/nnnick/696cc9c55f4b0beb8fe9
*
Function setScaleSize
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setScaleSize: function() {
/*
* Right, this is really confusing and there is a lot of maths going on here
* The gist of the problem is here: https://gist.github.com/nnnick/696cc9c55f4b0beb8fe9
*
Function initialize
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(data){
this.PointClass = Chart.Point.extend({
strokeWidth : this.options.pointDotStrokeWidth,
radius : this.options.pointDotRadius,
display: this.options.pointDot,
Function buildScale
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildScale: function(labels) {
var self = this;
var dataTotal = function() {
var values = [];
Function initialize
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(data){
this.PointClass = Chart.Point.extend({
strokeWidth : this.options.pointDotStrokeWidth,
radius : this.options.pointDotRadius,
display: this.options.pointDot,
Function buildScale
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildScale: function(labels) {
var self = this;
var dataTotal = function() {
var values = [];
File Chart.Radar.js
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(){
"use strict";
var root = this,
Chart = root.Chart,
Function initialize
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(data){
this.segments = [];
//Declare segment class as a chart instance specific class, so it can share props for this instance
this.SegmentArc = Chart.Arc.extend({
showStroke : this.options.segmentShowStroke,
Function buildScale
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildScale: function(labels) {
var self = this;
var dataTotal = function() {
var values = [];
Function buildScale
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildScale: function(labels) {
var self = this;
var dataTotal = function() {
var values = [];
Function initialize
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(data){
this.segments = [];
//Declare segment class as a chart instance specific class, so it can share props for this instance
this.SegmentArc = Chart.Arc.extend({
showStroke : this.options.segmentShowStroke,
Function draw
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function() {
var ctx = this.ctx;
if (this.display) {
this.yAxes.draw();
Function draw
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function() {
var ctx = this.ctx;
if (this.display) {
this.yAxes.draw();
Function buildScale
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildScale: function(labels) {
var self = this;
var dataTotal = function() {
var values = [];
Function buildScale
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildScale: function(labels) {
var self = this;
var dataTotal = function() {
var values = [];
Function medianPosition
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
medianPosition = (function(index) {
// Get all the points at that particular index
var Elements = [],
dataCollection,
Function medianPosition
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
medianPosition = (function(index) {
// Get all the points at that particular index
var Elements = [],
dataCollection,