Showing 290 of 682 total issues
File jquery.jqplot.js
has 7726 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Title: jqPlot Charts
*
* Pure JavaScript plotting plugin for jQuery.
*
Function jqPlot
has 1533 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function jqPlot() {
// Group: Properties
// These properties are specified at the top of the options object
// like so:
// > {
Function TokenList
has 388 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.TokenList = function (input, settings) {
//
// Variables
//
Function createTicks
has 385 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.LinearAxisRenderer.prototype.createTicks = function(plot) {
// we're are operating on an axis here
var ticks = this._ticks;
var userTicks = this.ticks;
var name = this.name;
File jquery.colorbox.js
has 763 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
jQuery Colorbox v1.4.10 - 2013-04-02
(c) 2013 Jack Moore - jacklmoore.com/colorbox
license: http://www.opensource.org/licenses/mit-license.php
*/
Function checkIntersection
has 264 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function checkIntersection(gridpos, plot) {
var series = plot.series;
var i, j, k, s, r, x, y, theta, sm, sa, minang, maxang;
var d0, d, p, pp, points, bw, hp;
var threshold, t;
File jqplot.barRenderer.js
has 605 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: 1.0.8
Function draw
has 262 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.CanvasGridRenderer.prototype.draw = function() {
this._ctx = this._elem.get(0).getContext("2d");
var ctx = this._ctx;
var axes = this._axes;
// Add the grid onto the grid canvas. This is the bottom most layer.
Function draw
has 223 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.BarRenderer.prototype.draw = function(ctx, gridData, options, plot) {
var i;
// Ughhh, have to make a copy of options b/c it may be modified later.
var opts = $.extend({}, options);
var shadow = (opts.shadow != undefined) ? opts.shadow : this.shadow;
Function ajaxSubmit
has 222 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.ajaxSubmit = function(options) {
// fast fail if nothing selected (http://dev.jquery.com/ticket/2752)
if (!this.length) {
log('ajaxSubmit: skipping submit process - no element selected');
return this;
Function pack
has 206 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.CategoryAxisRenderer.prototype.pack = function(pos, offsets) {
var ticks = this._ticks;
var max = this.max;
var min = this.min;
var offmax = offsets.max;
File jqplot.categoryAxisRenderer.js
has 508 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: 1.0.8
Function pack
has 193 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.LinearAxisRenderer.prototype.pack = function(pos, offsets) {
// Add defaults for repacking from resetTickValues function.
pos = pos || {};
offsets = offsets || this._offsets;
Function draw
has 188 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.draw = function(){
if (this.drawIfHidden || this.target.is(':visible')) {
this.target.trigger('jqplotPreDraw');
var i,
j,
Function draw
has 181 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.LineRenderer.prototype.draw = function(ctx, gd, options, plot) {
var i;
// get a copy of the options, so we don't modify the original object.
var opts = $.extend(true, {}, options);
var shadow = (opts.shadow != undefined) ? opts.shadow : this.shadow;
Function init
has 175 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.init = function(target, data, options) {
options = options || {};
for (var i=0; i<$.jqplot.preInitHooks.length; i++) {
$.jqplot.preInitHooks[i].call(this, target, data, options);
}
Function sprintf
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.sprintf = function() {
function pad(str, len, chr, leftJustify) {
var padding = (str.length >= len) ? '' : Array(1 + len - str.length >>> 0).join(chr);
return leftJustify ? str + padding : padding + str;
File jquery.tokeninput.js
has 446 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery Plugin: Tokenizing Autocomplete Text Entry
* Version 1.1
*
* Copyright (c) 2009 James Smith (http://loopj.com)
Function jqplotToImageCanvas
has 164 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.jqplotToImageCanvas = function(options) {
options = options || {};
var x_offset = (options.x_offset == null) ? 0 : options.x_offset;
var y_offset = (options.y_offset == null) ? 0 : options.y_offset;
Function showTooltip
has 154 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showTooltip(plot, series, neighbor) {
// neighbor looks like: {seriesIndex: i, pointIndex:j, gridData:p, data:s.data[j]}
// gridData should be x,y pixel coords on the grid.
// add the plot._gridPadding to that to get x,y in the target.
var hl = plot.plugins.highlighter;