Showing 84 of 98 total issues
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,
Function calculateScaleRange
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
calculateScaleRange = helpers.calculateScaleRange = function(valuesArray, drawingSize, textSize, startFromZero, integersOnly) {
if(valuesArray.length > 0)
{
//Set a minimum step of two - a point at the top of the graph, and a point at the base
var minSteps = 2,
Function calculateScaleRange
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
calculateScaleRange = helpers.calculateScaleRange = function(valuesArray, drawingSize, textSize, startFromZero, integersOnly) {
if(valuesArray.length > 0)
{
//Set a minimum step of two - a point at the top of the graph, and a point at the base
var minSteps = 2,
Function draw
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function(labelOffset, leftLabelsWidth, rightLabelsWidth, isMain) {
var ctx = this.ctx,
yLabelGap = (this.endPoint - this.startPoint) / this.steps,
xStart = Math.round(leftLabelsWidth),
xEnd = Math.round(this.width - rightLabelsWidth),
Function draw
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function(labelOffset, leftLabelsWidth, rightLabelsWidth, isMain) {
var ctx = this.ctx,
yLabelGap = (this.endPoint - this.startPoint) / this.steps,
xStart = Math.round(leftLabelsWidth),
xEnd = Math.round(this.width - rightLabelsWidth),
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 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,