Showing 84 of 98 total issues
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,
Function addData
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addData: function(valuesArray, label) {
//Map the values array for each of the datasets
var lineDataSetIndex = 0;
var barDataSetIndex = 0;
Function addData
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addData: function(valuesArray, label) {
//Map the values array for each of the datasets
var lineDataSetIndex = 0;
var barDataSetIndex = 0;
Consider simplifying this complex logical expression. Open
Open
if (this.datasets && this.datasets.length > 1) {
var dataArray,
dataIndex;
for (var i = this.datasets.length - 1; i >= 0; i--) {
Consider simplifying this complex logical expression. Open
Open
if (this.datasets && this.datasets.length > 1) {
var dataArray,
dataIndex;
for (var i = this.datasets.length - 1; i >= 0; i--) {
Function updateScaleRange
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateScaleRange: function(datasets){
var valuesArray = (function(){
var totalDataArray = [];
helpers.each(datasets,function(dataset){
if (dataset.data){
Function updateScaleRange
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateScaleRange: function(datasets){
var valuesArray = (function(){
var totalDataArray = [];
helpers.each(datasets,function(dataset){
if (dataset.data){
Function buildScale
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildScale : function(data){
this.scale = new Chart.RadialScale({
display: this.options.showScale,
fontStyle: this.options.scaleFontStyle,
fontSize: this.options.scaleFontSize,
Function setUpYAxes
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setUpYAxes: function() {
this.yAxes = new Chart.YAxes({
datasets: this.datasets,
templateString: this.templateString,
height: this.height,
Function medianPosition
has 31 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 draw
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw : function(ease){
var easeDecimal = ease || 1,
ctx = this.chart.ctx;
this.clear();
this.scale.draw();
Function medianPosition
has 31 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 draw
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw : function(ease){
var easeDecimal = ease || 1,
ctx = this.chart.ctx;
this.clear();
this.scale.draw();
Function buildScale
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildScale : function(data){
this.scale = new Chart.RadialScale({
display: this.options.showScale,
fontStyle: this.options.scaleFontStyle,
fontSize: this.options.scaleFontSize,
Function setUpYAxes
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setUpYAxes: function() {
this.yAxes = new Chart.YAxes({
datasets: this.datasets,
templateString: this.templateString,
height: this.height,